Merge pull request #2171 from vshn/fix_apprestore_on_boot

allow all apps to be restored on boot
This commit is contained in:
Michael Hobbs
2016-05-10 08:14:05 -07:00

View File

@@ -91,12 +91,14 @@ ps_start() {
local APP="$1"; verify_app_name "$APP"
local IMAGE_TAG=$(get_running_image_tag "$APP");
! (is_deployed "$APP") && echo "App $APP has not been deployed" && exit 0
if ! (is_app_running "$APP"); then
release_and_deploy "$APP" "$IMAGE_TAG"
if (is_deployed "$APP"); then
if ! (is_app_running "$APP"); then
release_and_deploy "$APP" "$IMAGE_TAG"
else
echo "App $APP already running"
fi
else
echo "App $APP already running"
echo "App $APP has not been deployed"
fi
}