Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle dokku plugins-update command #669

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion dokku
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,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 @@ -114,6 +114,10 @@ case "$1" in
pluginhook install
;;

plugins-update)
pluginhook update
;;

# temporary hack for https://github.com/progrium/dokku/issues/82
deploy:all)
for app in $(ls -d $DOKKU_ROOT/*/); do
Expand All @@ -127,6 +131,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 @@ -45,6 +45,9 @@ Show the last logs for an application (-t follows)
.B plugins-install
Install active plugins.
.TP
.B plugins-update
Update active plugins.
.TP
.B plugins
Print active plugins.
.TP
Expand Down