Fix issue with plugins having plugins command

This commit is contained in:
Domonkos Czinke
2016-02-24 23:38:49 +01:00
parent 653dc1c518
commit ac5944ec79

2
dokku
View File

@@ -58,7 +58,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