fix: remove old nginx.conf from a new app on clone
This commit is contained in:
1 parent
0498a707c8
commit
34d248a28c
1 file changed
+12
Executable
+12
@@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||||
|
|
||||||
|
nginx_post_app_clone_setup() {
|
||||||
|
declare desc="removes nginx files when setting up a clone"
|
||||||
|
declare OLD_APP="$1" NEW_APP="$2"
|
||||||
|
local APP_DIR="$DOKKU_ROOT/$NEW_APP"
|
||||||
|
|
||||||
|
rm -rf "$APP_DIR/nginx.conf"
|
||||||
|
}
|
||||||
|
|
||||||
|
nginx_post_app_clone_setup "$@"
|
||||||
Reference in new issue
Block a user