fix: skip undeployed apps when parallel is not available

This commit is contained in:
Jose Diaz-Gonzalez
2018-01-12 01:33:29 -05:00
parent f0ee6288fb
commit 7a4ab91ecf

View File

@@ -40,6 +40,11 @@ ps_restore_all() {
fi
for app in $(dokku_apps); do
if ! (is_deployed "$app"); then
dokku_log_warn "App $app has not been deployed"
continue
fi
local DOKKU_APP_RESTORE=$(config_get "$app" DOKKU_APP_RESTORE || true)
if [[ $DOKKU_APP_RESTORE != 0 ]]; then
dokku_log_verbose "Restoring app $app ..."