Files
dokku/plugins/nginx-vhosts/core-post-deploy
Jose Diaz-Gonzalez 348a593ee8 refactor trigger proxy-build-config from nginx#core-post-deploy
This reduces the duplicated code in the plugin.
2022-12-01 22:39:20 -05:00

21 lines
540 B
Bash
Executable File

#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/functions"
trigger-nginx-vhosts-core-post-deploy() {
declare desc="nginx-vhosts core-post-deploy plugin trigger"
declare trigger="nginx_core_post_deploy"
declare APP="$1"
local HAS_NETWORK_CONFIG
if [[ "$(plugn trigger proxy-type "$APP")" != "nginx" ]]; then
return
fi
plugn trigger proxy-build-config "$APP"
}
trigger-nginx-vhosts-core-post-deploy "$@"