Add post-delete script to haproxy-vhosts plugin

Fix #7443
This commit is contained in:
Álvaro Justen (@turicas)
2025-01-13 03:55:09 -03:00
parent 3c0d6b6f23
commit 5cb0a3fbf7

View File

@@ -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 "$@"