2013-10-29 17:13:02 -05:00
|
|
|
#!/usr/bin/env bash
|
2019-01-07 01:04:17 -05:00
|
|
|
set -eo pipefail
|
|
|
|
|
[[ $DOKKU_TRACE ]] && set -x
|
2015-09-09 18:27:42 -07:00
|
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
2015-09-17 19:09:29 -07:00
|
|
|
source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/functions"
|
2014-11-16 02:54:54 -05:00
|
|
|
|
2020-02-10 02:40:59 -05:00
|
|
|
trigger-nginx-vhosts-core-post-deploy() {
|
2016-09-05 00:04:06 -04:00
|
|
|
declare desc="nginx-vhosts core-post-deploy plugin trigger"
|
2020-02-10 02:40:59 -05:00
|
|
|
declare trigger="nginx_core_post_deploy"
|
|
|
|
|
declare APP="$1"
|
2017-09-03 03:07:24 -04:00
|
|
|
local HAS_NETWORK_CONFIG
|
|
|
|
|
|
2020-02-22 06:35:30 -05:00
|
|
|
if [[ "$(plugn trigger proxy-type "$APP")" != "nginx" ]]; then
|
2020-02-10 02:40:59 -05:00
|
|
|
return
|
|
|
|
|
fi
|
|
|
|
|
|
2022-11-27 19:50:57 -05:00
|
|
|
plugn trigger proxy-build-config "$APP"
|
2016-02-14 18:43:40 -08:00
|
|
|
}
|
2013-07-20 15:43:29 +03:00
|
|
|
|
2020-02-10 02:40:59 -05:00
|
|
|
trigger-nginx-vhosts-core-post-deploy "$@"
|