added to log detal for containers
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user