From 5745d54c2175b111a23ab75ec3ad00e90c470b78 Mon Sep 17 00:00:00 2001 From: t3chn0m4g3 Date: Sun, 20 Mar 2022 09:42:29 +0000 Subject: [PATCH] update tweaking --- update.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 5006a299..c5d00b72 100755 --- a/update.sh +++ b/update.sh @@ -109,6 +109,10 @@ if [ "$myRELEASE" != "$myLSB_RELEASE" ] echo systemctl stop tpot systemctl disable tpot + systemctl stop docker + systemctl start docker + docker stop $(docker ps -aq) + docker rm -v $(docker ps -aq) echo "###### Switching /etc/apt/sources.list from buster to bullseye ... " echo sed -i 's/buster/bullseye/g' /etc/apt/sources.list @@ -118,11 +122,12 @@ if [ "$myRELEASE" != "$myLSB_RELEASE" ] echo "###### Running full upgrade ... " echo echo "docker.io docker.io/restart boolean true" | debconf-set-selections -v + echo "libc6 libc6/restart boolean true" | debconf-set-selections -v echo "debconf debconf/frontend select noninteractive" | debconf-set-selections -v apt-fast full-upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --force-yes dpkg --configure -a echo "###### $myBLUE""Finished with upgrading. Now restarting update.sh and to continue with T-Pot related updates.""$myWHITE" - exec "$0" "$@" + exec ./update.sh -y exit 1 fi exit