Files

20 lines
548 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/functions"
2020-02-10 02:40:59 -05:00
trigger-nginx-vhosts-post-delete() {
declare desc="nginx-vhosts post-delete trigger"
declare trigger="post-delete"
declare APP="$1"
2020-02-10 02:40:59 -05:00
fn-plugin-property-destroy "nginx" "$APP"
if fn-nginx-vhosts-nginx-is-running; then
restart_nginx "$@" >/dev/null
fi
2022-11-24 00:51:21 -05:00
rm -rf "${DOKKU_LIB_ROOT}/data/nginx-vhosts/app-$APP"
2020-02-10 02:40:59 -05:00
}
trigger-nginx-vhosts-post-delete "$@"