added to log detal for containers

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