diff --git a/dokku b/dokku index 22bb1a280..bacb6080f 100755 --- a/dokku +++ b/dokku @@ -11,7 +11,7 @@ export PLUGIN_PATH=${PLUGIN_PATH:="/var/lib/dokku/plugins"} [[ $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 "$@" exit fi @@ -134,6 +134,10 @@ case "$1" in pluginhook dependencies ;; + plugins-update) + pluginhook update + ;; + # temporary hack for https://github.com/progrium/dokku/issues/82 deploy:all) for app in $(ls -d $DOKKU_ROOT/*/CONTAINER); do @@ -147,6 +151,7 @@ case "$1" in help Print the list of commands plugins Print active plugins plugins-install Install active plugins + plugins-update Update active plugins EOF ;; diff --git a/dokku.1 b/dokku.1 index 87a41819b..35bfcfcef 100644 --- a/dokku.1 +++ b/dokku.1 @@ -55,6 +55,9 @@ server\.crt and server\.key .B plugins-install Install active plugins. .TP +.B plugins-update +Update active plugins. +.TP .B plugins Print active plugins. .TP