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