Start to thread through arguments

This commit is contained in:
Luke Murphy
2020-04-13 10:26:21 +02:00
parent 714f18e8c0
commit 236705d1e3
2 changed files with 47 additions and 5 deletions

View File

@ -100,11 +100,16 @@ dokku-ansible-deploy-pre-deploy() {
declare desc="run the pre-deploy hook to setup an app"
declare APP="$1"
declare APP_CONFIG_PATH="$DOKKU_LIB_ROOT/data/deploy.d/$APP"
declare PLUGIN_PATH="$PLUGIN_CORE_AVAILABLE_PATH/ansible-deploy"
declare PREDEPLOY="$PLUGIN_CORE_AVAILABLE_PATH/ansible-deploy/scripts/predeploy.py"
dokku_col_log_info1_quiet "Running pre-deploy steps"
/usr/bin/python3 "$PREDEPLOY"
/usr/bin/python3 "$PREDEPLOY"
--app "$APP" \
--app-config-path "$APP_CONFIG_PATH" \
--plugin-path "$PLUGIN_PATH"
}
dokku-ansible-deploy-post-deploy() {
@ -126,5 +131,5 @@ dokku-ansible-deploy-post-delete() {
declare POSTDELETE="$PLUGIN_CORE_AVAILABLE_PATH/ansible-deploy/scripts/postdelete.py"
dokku_col_log_info1_quiet "Running post-delete steps"
/usr/bin/python3 "$POSTDELETE" "$APP"
/usr/bin/python3 "$POSTDELETE"
}