Merge branch 'master' into 3592-notify-on-bad-branch

This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2019-08-02 11:20:37 -04:00
commit 27ed3c52e3
1 file changed
+6
+6
View File
@@ -672,6 +672,12 @@ dokku_auth() {
declare desc="calls user-auth plugin trigger" declare desc="calls user-auth plugin trigger"
export SSH_USER=${SSH_USER:=$USER} export SSH_USER=${SSH_USER:=$USER}
export SSH_NAME=${NAME:="default"} export SSH_NAME=${NAME:="default"}
# this plugin trigger exists in the core `20_events` plugin
if [[ $(find "$PLUGIN_PATH"/enabled/*/user-auth 2>/dev/null | wc -l) == 1 ]]; then
return 0
fi
if ! plugn trigger user-auth "$SSH_USER" "$SSH_NAME" "$@"; then if ! plugn trigger user-auth "$SSH_USER" "$SSH_NAME" "$@"; then
return 1 return 1
fi fi