fix rebuildall and restartall

This commit is contained in:
Michael Hobbs committed 2015-04-21 14:33:28 -07:00
1 parent 9a704bc656
commit ddf893bc8a
1 file changed
+7 -4
+7 -4
View File
@@ -80,8 +80,9 @@ case "$1" in
ps:rebuildall) ps:rebuildall)
shopt -s nullglob shopt -s nullglob
for app in $DOKKU_ROOT/*; do for app in $DOKKU_ROOT/*; do
APP=$(basename "$(dirname $app)") [[ ! -d $app ]] && continue
is_deployed && dokku ps:rebuild $APP APP=$(basename $app)
is_deployed $APP && dokku ps:rebuild $APP
done done
shopt -u nullglob shopt -u nullglob
;; ;;
@@ -98,10 +99,12 @@ case "$1" in
ps:restartall) ps:restartall)
shopt -s nullglob shopt -s nullglob
for app in $DOKKU_ROOT/*/CONTAINER; do for app in $DOKKU_ROOT/*; do
APP=$(basename "$(dirname $app)"); [[ ! -d $app ]] && continue
APP=$(basename $app)
dokku ps:restart $APP dokku ps:restart $APP
done done
shopt -u nullglob
;; ;;
ps:scale) ps:scale)