From c1d519f5ea9df34c512f78b0fa966079e2a37a70 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 17:43:21 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 7049a88..77693fe 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -696,7 +696,7 @@ INSTALL_WATCHTOWER() { -e WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=25 \ containrrr/watchtower --run-once else - if [ "$(docker ps -q -f name=watchtower)" ]; then + if [ "$(docker ps -a -q -f name=watchtower)" ]; then echo -en "${idsCL[LightYellow]}Removing previous Watchtower container... ${idsCL[Default]}" docker stop watchtower >/dev/null 2>&1 docker rm watchtower >/dev/null 2>&1 @@ -726,7 +726,7 @@ INSTALL_WATCHTOWER() { echo } PORTAINER_AGENT_INSTALL(){ - if [ "$(docker ps -q -f name=portainer_agent)" ]; then + if [ "$(docker ps -a -q -f name=portainer_agent)" ]; then echo -en "${idsCL[LightYellow]}Removing previous Portainer Agent container... ${idsCL[Default]}" docker stop portainer_agent >/dev/null 2>&1 docker rm portainer_agent >/dev/null 2>&1