The URLS file is no longer necessary as urls are now generated directly from the app VHOST file. This also moves all the url generation logic to the domains plugin.
15 lines
360 B
Bash
Executable File
15 lines
360 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
trigger-domains-post-app-clone-setup() {
|
|
declare desc="removes domain files when setting up a clone"
|
|
declare trigger="post-app-clone-setup"
|
|
declare OLD_APP="$1" NEW_APP="$2"
|
|
local APP_ROOT="$DOKKU_ROOT/$NEW_APP"
|
|
|
|
rm -rf "$APP_ROOT/VHOST"
|
|
}
|
|
|
|
trigger-domains-post-app-clone-setup "$@"
|