mirror of
https://github.com/dokku/dokku.git
synced 2025-12-16 12:07:45 +01:00
18 lines
564 B
Bash
Executable File
18 lines
564 B
Bash
Executable File
#!/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/internal-functions"
|
|
|
|
trigger-nginx-vhosts-post-app-rename-setup() {
|
|
declare desc="calls proxy-clear-config"
|
|
declare trigger="post-app-rename-setup"
|
|
declare OLD_APP="$1" NEW_APP="$2"
|
|
|
|
fn-plugin-property-clone "nginx" "$OLD_APP" "$NEW_APP"
|
|
fn-plugin-property-destroy "nginx" "$OLD_APP"
|
|
plugn trigger proxy-clear-config "$NEW_APP"
|
|
}
|
|
|
|
trigger-nginx-vhosts-post-app-rename-setup "$@"
|