From af687b070640ff87c6f50f1ee9ae8ff652832f3c Mon Sep 17 00:00:00 2001 From: William Wernert Date: Tue, 12 Oct 2021 10:10:34 -0400 Subject: [PATCH] Remove all holds on Ubuntu reinstall --- setup/so-functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/so-functions b/setup/so-functions index f7d489f42..c808cc6b2 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -2037,7 +2037,7 @@ reinstall_init() { if command -v docker &> /dev/null; then # Stop and remove all so-* containers so files can be changed with more safety - if [ $(docker ps -a -q --filter "name=so-" | wc -l) -gt 0 ]; then + if [[ $(docker ps -a -q --filter "name=so-" | wc -l) -gt 0 ]]; then docker stop $(docker ps -a -q --filter "name=so-") docker rm -f $(docker ps -a -q --filter "name=so-") fi @@ -2056,6 +2056,10 @@ reinstall_init() { # Remove the old launcher package in case the config changes remove_package launcher-final + if [[ $OS == 'ubuntu' ]]; then + apt-mark unhold $(apt-mark showhold) + fi + } >> "$setup_log" 2>&1 }