Merge pull request #1941 from cu12/fix-check-plugin-command
Fix issue with plugins having plugins command
This commit is contained in:
2
dokku
2
dokku
@@ -60,7 +60,7 @@ if [[ $(id -un) != "dokku" ]] && [[ ! $1 =~ plugin:* ]]; then
|
|||||||
exit $?
|
exit $?
|
||||||
fi
|
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"
|
dokku_log_fail "plugin:* commands must be run as root"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user