Merge pull request #1941 from cu12/fix-check-plugin-command

Fix issue with plugins having plugins command
This commit is contained in:
Jose Diaz-Gonzalez
2016-02-25 00:59:07 -05:00

2
dokku
View File

@@ -60,7 +60,7 @@ if [[ $(id -un) != "dokku" ]] && [[ ! $1 =~ plugin:* ]]; then
exit $?
fi
if [[ $(id -un) != "root" && $1 =~ plugin:.* ]]; then
if [[ $(id -un) != "root" && $1 =~ ^plugin:.* ]]; then
dokku_log_fail "plugin:* commands must be run as root"
fi