28 lines
701 B
Bash
Executable File
28 lines
701 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
source "$(dirname "$(dirname "${BASH_SOURCE[0]}")")/functions"
|
|
|
|
cmd-google-auth-unexclude() {
|
|
declare desc="remove previously excluded patterns"
|
|
local cmd="google-auth:unexclude"
|
|
[[ "$1" == "$cmd" ]] && shift 1
|
|
declare APP="$1"
|
|
shift 1 || true
|
|
|
|
[[ -n "$APP" && $# -gt 0 ]] || dokku_log_fail "usage: dokku google-auth:unexclude <app> <pattern...>"
|
|
verify_app_name "$APP"
|
|
|
|
local pattern
|
|
for pattern in "$@"; do
|
|
fn-ga-exclude-remove "$APP" "$pattern"
|
|
dokku_log_info1 "removed exclusion: $pattern"
|
|
done
|
|
|
|
if fn-google-auth-app-enabled "$APP"; then
|
|
fn-ga-apply "$APP"
|
|
fi
|
|
}
|
|
|
|
cmd-google-auth-unexclude "$@"
|