Merge pull request #2171 from vshn/fix_apprestore_on_boot
allow all apps to be restored on boot
This commit is contained in:
@@ -91,12 +91,14 @@ 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
|
||||||
|
echo "App $APP already running"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "App $APP already running"
|
echo "App $APP has not been deployed"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user