mirror of
https://github.com/dokku/dokku.git
synced 2025-12-16 12:07:45 +01:00
Without these, there was potential for configuration for certain plugins to continue to exist after an app was deleted.
15 lines
451 B
Bash
Executable File
15 lines
451 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_AVAILABLE_PATH/docker-options/functions"
|
|
|
|
trigger-docker-options-post-delete() {
|
|
declare desc="deletes docker options files for an app"
|
|
declare trigger="post-delete"
|
|
declare APP="$1"
|
|
|
|
rm -f "$(fn-get-phase-file-path "$APP" "build")" "$(fn-get-phase-file-path "$APP" "deploy")" "$(fn-get-phase-file-path "$APP" "run")"
|
|
}
|
|
|
|
trigger-docker-options-post-delete "$@"
|