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

@@ -4,13 +4,13 @@ source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/config/functions"
source "$PLUGIN_AVAILABLE_PATH/ps/functions"
ps_post_deploy() {
declare desc="ps post-deploy plugin trigger"
local trigger="ps_post_deploy"
ps_core_post_deploy() {
declare desc="ps core-post-deploy plugin trigger"
local trigger="ps_core_post_deploy"
local APP="$1"
remove_procfile "$APP"
config_set --no-restart "$APP" DOKKU_APP_RESTORE=1
}
ps_post_deploy "$@"
ps_core_post_deploy "$@"