From e28c75e56a10de6ac48af0f90281f190d81c4a92 Mon Sep 17 00:00:00 2001 From: Michael Hobbs Date: Thu, 29 Oct 2015 07:54:52 -0700 Subject: [PATCH] move RESTORE variable to DOKKU_APP namespace --- plugins/ps/commands | 4 ++-- plugins/ps/post-deploy | 2 +- plugins/ps/post-stop | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/ps/commands b/plugins/ps/commands index e6b478289..51cd35b14 100755 --- a/plugins/ps/commands +++ b/plugins/ps/commands @@ -89,8 +89,8 @@ case "$1" in for app in $DOKKU_ROOT/*; do [[ ! -d $app ]] && continue APP=$(basename $app) - RESTORE=$(dokku config:get $APP RESTORE || true) - if [[ $RESTORE != 0 ]]; then + DOKKU_APP_RESTORE=$(dokku config:get $APP DOKKU_APP_RESTORE || true) + if [[ $DOKKU_APP_RESTORE != 0 ]]; then echo "Restoring app $APP ..." dokku ps:start $APP fi diff --git a/plugins/ps/post-deploy b/plugins/ps/post-deploy index 956712ee7..cb45e320b 100755 --- a/plugins/ps/post-deploy +++ b/plugins/ps/post-deploy @@ -5,4 +5,4 @@ source "$PLUGIN_AVAILABLE_PATH/ps/functions" APP="$1" -dokku config:set --no-restart $APP RESTORE=1 +dokku config:set --no-restart $APP DOKKU_APP_RESTORE=1 diff --git a/plugins/ps/post-stop b/plugins/ps/post-stop index 8c4d9f2b8..1f88be9b8 100755 --- a/plugins/ps/post-stop +++ b/plugins/ps/post-stop @@ -5,4 +5,4 @@ source "$PLUGIN_AVAILABLE_PATH/ps/functions" APP="$1" -dokku config:set --no-restart $APP RESTORE=0 +dokku config:set --no-restart $APP DOKKU_APP_RESTORE=0