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 authored and GitHub committed 2018-07-05 10:49:07 -04:00
commit 019e80d60a
1 file changed
+6 -1
+6 -1
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" declare desc="starts all apps with DOKKU_APP_RESTORE not set to 0 via command line"
local cmd="ps:restore" local cmd="ps:restore"
local APP="$2" 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" plugn trigger pre-restore "$DOKKU_SCHEDULER"
if [[ -n "$APP" ]]; then if [[ -n "$APP" ]]; then