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.
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2022-07-17 17:58:37 -04:00
1 parent 4d8e8148d5
commit cfc1cfb305
1 file changed
+1
+1
View File
@@ -743,6 +743,7 @@ 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"}
export DOKKU_COMMAND="$1"
local user_auth_count=$(find "$PLUGIN_PATH"/enabled/*/user-auth 2>/dev/null | wc -l) local user_auth_count=$(find "$PLUGIN_PATH"/enabled/*/user-auth 2>/dev/null | wc -l)