mirror of
https://github.com/dokku/dokku.git
synced 2026-02-24 04:00:36 +01:00
This allows other plugins to avoid understanding the underlying details of how domains might be integrated with.
17 lines
405 B
Bash
Executable File
17 lines
405 B
Bash
Executable File
#!/usr/bin/env bash
|
|
source "$PLUGIN_AVAILABLE_PATH/domains/functions"
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
trigger-domains-domains-vhost-enabled() {
|
|
declare desc="returns whether vhosts are enabled or not"
|
|
declare trigger="domains-vhost-enabled"
|
|
declare APP="$1"
|
|
|
|
if [[ "$(is_app_vhost_enabled "$APP")" == "false" ]]; then
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
trigger-domains-domains-vhost-enabled "$@"
|