container log fix
This commit is contained in:
@@ -133,7 +133,7 @@ stop_containers() {
|
||||
if [[ "$STATUS" == "true" ]]; then
|
||||
warn "Stopping $c"
|
||||
RUNNING_CONTAINERS+=("$c")
|
||||
ssh -i "$SSH_KEY" root@"$REMOTE_SERVER" "docker stop $c"
|
||||
ssh -i "$SSH_KEY" root@"$REMOTE_SERVER" "docker stop $c" >/dev/null
|
||||
else
|
||||
log "$c already stopped"
|
||||
fi
|
||||
@@ -151,7 +151,7 @@ start_containers() {
|
||||
|
||||
for c in "${RUNNING_CONTAINERS[@]}"; do
|
||||
info "Starting $c"
|
||||
ssh -i "$SSH_KEY" root@"$REMOTE_SERVER" "docker start $c"
|
||||
ssh -i "$SSH_KEY" root@"$REMOTE_SERVER" "docker start $c" >/dev/null
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user