feat: do not clone URLS and VHOST files to new apps
This follows the heroku pattern of ensuring applications are "freshly" created, routing-wise. Closes #2740
This commit is contained in:
12
plugins/certs/post-app-clone-setup
Executable file
12
plugins/certs/post-app-clone-setup
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
|
||||
certs_post_app_clone_setup() {
|
||||
declare desc="removes cert file when setting up a clone"
|
||||
declare OLD_APP="$1" NEW_APP="$2"
|
||||
local APP_DIR="$DOKKU_ROOT/$NEW_APP"
|
||||
|
||||
rm -rf "$APP_DIR/tls"
|
||||
}
|
||||
|
||||
certs_post_app_clone_setup "$@"
|
||||
Reference in New Issue
Block a user