Merge pull request #669 from ohardy/master
This commit is contained in:
7
dokku
7
dokku
@@ -11,7 +11,7 @@ export PLUGIN_PATH=${PLUGIN_PATH:="/var/lib/dokku/plugins"}
|
|||||||
|
|
||||||
[[ $DOKKU_TRACE ]] && set -x
|
[[ $DOKKU_TRACE ]] && set -x
|
||||||
|
|
||||||
if [[ $(id -un) != "dokku" && $1 != plugins-install* ]]; then
|
if [[ $(id -un) != "dokku" && $1 != plugins-install* && $1 != "plugins-update" ]]; then
|
||||||
sudo -u dokku -H $0 "$@"
|
sudo -u dokku -H $0 "$@"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
@@ -134,6 +134,10 @@ case "$1" in
|
|||||||
pluginhook dependencies
|
pluginhook dependencies
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
plugins-update)
|
||||||
|
pluginhook update
|
||||||
|
;;
|
||||||
|
|
||||||
# temporary hack for https://github.com/progrium/dokku/issues/82
|
# temporary hack for https://github.com/progrium/dokku/issues/82
|
||||||
deploy:all)
|
deploy:all)
|
||||||
for app in $(ls -d $DOKKU_ROOT/*/CONTAINER); do
|
for app in $(ls -d $DOKKU_ROOT/*/CONTAINER); do
|
||||||
@@ -147,6 +151,7 @@ case "$1" in
|
|||||||
help Print the list of commands
|
help Print the list of commands
|
||||||
plugins Print active plugins
|
plugins Print active plugins
|
||||||
plugins-install Install active plugins
|
plugins-install Install active plugins
|
||||||
|
plugins-update Update active plugins
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user