Fix ps_restart to not exit

ps_restartall_cmd calls ps_restart from a loop, if ps_restart exits because of a not deployed app further apps might not be restarted.
This commit is contained in:
Stefan Siegl
2016-03-28 20:34:17 +02:00
parent c245ba3a5d
commit 088ee071ca

View File

@@ -128,9 +128,11 @@ ps_restart() {
local APP="$1"; verify_app_name "$APP" local APP="$1"; verify_app_name "$APP"
local IMAGE_TAG=$(get_running_image_tag "$APP") local IMAGE_TAG=$(get_running_image_tag "$APP")
! (is_deployed "$APP") && echo "App $APP has not been deployed" && exit 0 if is_deployed "$APP"; then
release_and_deploy "$APP" "$IMAGE_TAG"
release_and_deploy "$APP" "$IMAGE_TAG" else
echo "App $APP has not been deployed"
fi
} }
ps_scale() { ps_scale() {