From 5cb0a3fbf7f2a5e8f41a682e9f04b666fa5f050a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Justen=20=28=40turicas=29?= Date: Mon, 13 Jan 2025 03:55:09 -0300 Subject: [PATCH] Add post-delete script to haproxy-vhosts plugin Fix #7443 --- plugins/haproxy-vhosts/post-delete | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 plugins/haproxy-vhosts/post-delete diff --git a/plugins/haproxy-vhosts/post-delete b/plugins/haproxy-vhosts/post-delete new file mode 100755 index 000000000..9d914c93d --- /dev/null +++ b/plugins/haproxy-vhosts/post-delete @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions" +set -eo pipefail +[[ $DOKKU_TRACE ]] && set -x + +trigger-haproxy-vhosts-post-delete() { + declare desc="haproxy-vhosts post-delete trigger" + declare trigger="post-delete" + declare APP="$1" + + fn-plugin-property-destroy "haproxy" "$APP" +} + +trigger-haproxy-vhosts-post-delete "$@"