From cfc1cfb305d0d1898da5ab64d64412385f087020 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 17 Jul 2022 17:58:37 -0400 Subject: [PATCH] feat: export DOKKU_COMMAND for use in authentication systems Some auth systems may decide that an app is not available for use by a particular command vs making them wholly available or not. Exporting the variable here allows such systems to function correctly. --- plugins/common/functions | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/common/functions b/plugins/common/functions index 98237caf5..826524ab4 100755 --- a/plugins/common/functions +++ b/plugins/common/functions @@ -743,6 +743,7 @@ dokku_auth() { declare desc="calls user-auth plugin trigger" export SSH_USER=${SSH_USER:=$USER} export SSH_NAME=${NAME:="default"} + export DOKKU_COMMAND="$1" local user_auth_count=$(find "$PLUGIN_PATH"/enabled/*/user-auth 2>/dev/null | wc -l)