Merge pull request #3223 from dokku/josegonzalez-patch-1

Get the global scheduler if no app is specified
This commit is contained in:
Jose Diaz-Gonzalez
2018-07-05 10:49:07 -04:00
committed by GitHub

View File

@@ -8,8 +8,13 @@ ps_restore_cmd() {
declare desc="starts all apps with DOKKU_APP_RESTORE not set to 0 via command line"
local cmd="ps:restore"
local APP="$2"
local DOKKU_SCHEDULER
DOKKU_SCHEDULER=$(config_get --global DOKKU_SCHEDULER || echo "docker-local")
if [[ -n "$APP" ]]; then
DOKKU_SCHEDULER=$(config_get "$APP" DOKKU_SCHEDULER || echo "docker-local")
fi
local DOKKU_SCHEDULER=$(config_get "$APP" DOKKU_SCHEDULER || echo "docker-local")
plugn trigger pre-restore "$DOKKU_SCHEDULER"
if [[ -n "$APP" ]]; then