added to log detal for containers

This commit is contained in:
2026-03-27 19:57:53 +00:00
parent bfafbf1d35
commit 418acc9fd7
+5 -2
View File
@@ -131,9 +131,12 @@ stop_containers() {
if [[ "$STATUS" == "true" ]]; then if [[ "$STATUS" == "true" ]]; then
warn "Stopping $c" warn "Stopping $c"
RUNNING_CONTAINERS+=("$c") RUNNING_CONTAINERS+=("$c")
ssh -i "$SSH_KEY" root@"$REMOTE_SERVER" "docker stop $c" >/dev/null
if ssh -i "$SSH_KEY" root@"$REMOTE_SERVER" "docker stop $c" >/dev/null; then
success "$c stopped"
else else
log "$c already stopped" error "Failed to stop $c"
fi
fi fi
done done
} }