Skip to content

Commit

Permalink
Merge branch 'ohardy-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Nov 24, 2014
2 parents 2141435 + 303bc18 commit 0a8a593
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dokku
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
;;

Expand Down
3 changes: 3 additions & 0 deletions dokku.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a8a593

Please sign in to comment.