move RESTORE variable to DOKKU_APP namespace

This commit is contained in:
Michael Hobbs
2015-10-29 07:54:52 -07:00
parent f13796fa57
commit e28c75e56a
3 changed files with 4 additions and 4 deletions

View File

@@ -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