From 2323276fc2e923ec3d452c82866a8f8d20b31781 Mon Sep 17 00:00:00 2001 From: Marc Nijman Date: Wed, 25 Feb 2026 15:23:50 +0000 Subject: [PATCH] ProposedFix down+up instead of stop+up --- dockcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockcheck.sh b/dockcheck.sh index 24e7c62..5d4a6a1 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -648,7 +648,7 @@ if [[ -n "${GotUpdates:-}" ]]; then ContRestartStack=$($jqbin -r '."mag37.dockcheck.restart-stack"' <<< "$ContLabels") [[ "$ContRestartStack" == "null" ]] && ContRestartStack="" ContOnlySpecific=$($jqbin -r '."mag37.dockcheck.only-specific-container"' <<< "$ContLabels") - [[ "$ContOnlySpecific" == "null" ]] && ContRestartStack="" + [[ "$ContOnlySpecific" == "null" ]] && ContOnlySpecific="" ContStateRunning=$($jqbin -r '."State"."Running"' <<< "$ContConfig") [[ "$ContStateRunning" == "null" ]] && ContStateRunning="" @@ -678,7 +678,7 @@ if [[ -n "${GotUpdates:-}" ]]; then # Check if the whole stack should be restarted if [[ "$ContRestartStack" == true ]] || [[ "$ForceRestartStacks" == true ]]; then - ${DockerBin} ${CompleteConfs} stop; ${DockerBin} ${CompleteConfs} ${ContEnvs} up -d || { printf "\n%bDocker error, exiting!%b\n" "$c_red" "$c_reset" ; exit 1; } + ${DockerBin} ${CompleteConfs} down; ${DockerBin} ${CompleteConfs} ${ContEnvs} up -d || { printf "\n%bDocker error, exiting!%b\n" "$c_red" "$c_reset" ; exit 1; } else ${DockerBin} ${CompleteConfs} ${ContEnvs} up -d ${SpecificContainer} || { printf "\n%bDocker error, exiting!%b\n" "$c_red" "$c_reset" ; exit 1; } fi