diff --git a/plugins/ps/subcommands/restore b/plugins/ps/subcommands/restore index b9c209fd1..7103f59d8 100755 --- a/plugins/ps/subcommands/restore +++ b/plugins/ps/subcommands/restore @@ -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