Files

18 lines
445 B
Plaintext
Raw Permalink Normal View History

2016-02-14 18:43:40 -08:00
#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
2016-02-14 18:43:40 -08:00
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
2020-02-10 02:40:59 -05:00
trigger-nginx-vhosts-proxy-enable() {
2016-03-08 15:30:34 -05:00
declare desc="enable nginx proxy"
2020-02-10 02:40:59 -05:00
declare trigger="proxy-enable"
declare APP="$1"
2016-02-14 18:43:40 -08:00
if [[ "$(plugn trigger proxy-type "$APP")" == "nginx" ]]; then
plugn trigger domains-enable "$APP" "false"
plugn trigger app-restart "$APP"
2016-02-14 18:43:40 -08:00
fi
}
2020-02-10 02:40:59 -05:00
trigger-nginx-vhosts-proxy-enable "$@"