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 committed 2016-05-10 08:14:05 -07:00
commit 99030a110c
1 file changed
+4 -2
+4 -2
View File
@@ -91,13 +91,15 @@ ps_start() {
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
if ! (is_app_running "$APP"); then if ! (is_app_running "$APP"); then
release_and_deploy "$APP" "$IMAGE_TAG" release_and_deploy "$APP" "$IMAGE_TAG"
else else
echo "App $APP already running" echo "App $APP already running"
fi fi
else
echo "App $APP has not been deployed"
fi
} }
ps_stop() { ps_stop() {