11 lines
324 B
Bash
Executable File
11 lines
324 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Trigger: runs when an app is destroyed. The app's nginx.conf.d directory is
|
|
# removed by dokku core; we only clean up our own state.
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
source "$(dirname "${BASH_SOURCE[0]}")/functions"
|
|
|
|
APP="${1:-}"
|
|
[[ -z "$APP" ]] && exit 0
|
|
rm -rf "$(fn-ga-app-dir "$APP")"
|