If a user implements the user-auth-service trigger in a plugin and that plugin does not echo the passed in app(s) on stdout, the app is assumed to not exist. This mirrors the functionality for applications in regards to auth filtering. This may still need auditing to ensure it covers everything and doesn't cause issues, but local testing implies that everything is working as expected.
14 lines
450 B
Bash
Executable File
14 lines
450 B
Bash
Executable File
#!/usr/bin/env bash
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/config"
|
|
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/functions"
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
APP="$1"
|
|
for SERVICE in $(fn-services-list false); do
|
|
[[ -n "$SERVICE" ]] || continue
|
|
dokku_log_verbose_quiet "Unlinking from $SERVICE"
|
|
remove_from_links_file "$(basename "$SERVICE")" "$APP"
|
|
done
|