Move post-deploy trigger to core-post-deploy. Refs #2367

This avoids issues where community plugins may break core commands because of issues in the command output.
This commit is contained in:
Jose Diaz-Gonzalez
2016-09-05 00:04:06 -04:00
parent 0841888b67
commit 2fc3a09b41
7 changed files with 36 additions and 14 deletions

View File

@@ -5,9 +5,9 @@ source "$PLUGIN_AVAILABLE_PATH/domains/functions"
source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/functions"
source "$PLUGIN_AVAILABLE_PATH/proxy/functions"
nginx_post_deploy() {
declare desc="nginx-vhosts post-deploy plugin trigger"
local trigger="nginx_post_deploy"
nginx_core_post_deploy() {
declare desc="nginx-vhosts core-post-deploy plugin trigger"
local trigger="nginx_core_post_deploy"
local APP="$1"
if [[ -f "$DOKKU_ROOT/$APP/IP.web.1" ]] && [[ -f "$DOKKU_ROOT/$APP/PORT.web.1" ]]; then
if [[ "$(is_app_vhost_enabled "$APP")" == "false" ]]; then
@@ -21,5 +21,5 @@ nginx_post_deploy() {
}
if [[ "$(get_app_proxy_type "$1")" == "nginx" ]]; then
nginx_post_deploy "$@"
nginx_core_post_deploy "$@"
fi