Files
dokku/plugins/nginx-vhosts/proxy-disable

18 lines
448 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-disable() {
2016-03-08 15:30:34 -05:00
declare desc="disable nginx proxy"
2020-02-10 02:40:59 -05:00
declare trigger="proxy-disable"
declare APP="$1"
2016-02-14 18:43:40 -08:00
if [[ "$(plugn trigger proxy-type "$APP")" == "nginx" ]]; then
plugn trigger domains-disable "$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-disable "$@"