move RESTORE variable to DOKKU_APP namespace
This commit is contained in:
1 parent
f13796fa57
commit
e28c75e56a
3 files changed
+4
-4
No files matched your search
+2
-2
@@ -89,8 +89,8 @@ case "$1" in
|
|||||||
for app in $DOKKU_ROOT/*; do
|
for app in $DOKKU_ROOT/*; do
|
||||||
[[ ! -d $app ]] && continue
|
[[ ! -d $app ]] && continue
|
||||||
APP=$(basename $app)
|
APP=$(basename $app)
|
||||||
RESTORE=$(dokku config:get $APP RESTORE || true)
|
DOKKU_APP_RESTORE=$(dokku config:get $APP DOKKU_APP_RESTORE || true)
|
||||||
if [[ $RESTORE != 0 ]]; then
|
if [[ $DOKKU_APP_RESTORE != 0 ]]; then
|
||||||
echo "Restoring app $APP ..."
|
echo "Restoring app $APP ..."
|
||||||
dokku ps:start $APP
|
dokku ps:start $APP
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ source "$PLUGIN_AVAILABLE_PATH/ps/functions"
|
|||||||
|
|
||||||
APP="$1"
|
APP="$1"
|
||||||
|
|
||||||
dokku config:set --no-restart $APP RESTORE=1
|
dokku config:set --no-restart $APP DOKKU_APP_RESTORE=1
|
||||||
@@ -5,4 +5,4 @@ source "$PLUGIN_AVAILABLE_PATH/ps/functions"
|
|||||||
|
|
||||||
APP="$1"
|
APP="$1"
|
||||||
|
|
||||||
dokku config:set --no-restart $APP RESTORE=0
|
dokku config:set --no-restart $APP DOKKU_APP_RESTORE=0
|
||||||
Reference in new issue
Block a user