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.
19 lines
430 B
Bash
Executable File
19 lines
430 B
Bash
Executable File
#!/usr/bin/env bash
|
|
source "$PLUGIN_AVAILABLE_PATH/domains/functions"
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
trigger-domains-domains-enable() {
|
|
declare desc="enables domains for an app"
|
|
declare trigger="domains-enable"
|
|
declare APP="$1" RESTART_APP="$2"
|
|
|
|
if [[ "$RESTART_APP" == "true" ]]; then
|
|
enable_app_vhost "$APP"
|
|
else
|
|
enable_app_vhost "$APP" --no-restart
|
|
fi
|
|
}
|
|
|
|
trigger-domains-domains-enable "$@"
|