From 51dea4a2201dc717cd0374691e0b89a001f46b1e Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 27 Dec 2018 05:46:32 -0500 Subject: [PATCH] fix: do not clone the tls directory The tls directory stores the ssl certificate for an application, and should not be cloned to any new applications. Refs #2740 --- plugins/apps/subcommands/clone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/apps/subcommands/clone b/plugins/apps/subcommands/clone index 1a7d75cf9..7c8a1e3c9 100755 --- a/plugins/apps/subcommands/clone +++ b/plugins/apps/subcommands/clone @@ -37,7 +37,7 @@ apps_clone_cmd() { apps_create "$NEW_APP" pushd "$DOKKU_ROOT/$OLD_APP/." > /dev/null - find ./* -not \( -name .cache \) | grep -v "./cache" | cpio -pdmu --quiet "$DOKKU_ROOT/$NEW_APP" + find ./* -not \( -name .cache \) | grep -v -e "./cache" -e "./tls" | cpio -pdmu --quiet "$DOKKU_ROOT/$NEW_APP" popd > /dev/null 2>&1 || pushd "/tmp" > /dev/null plugn trigger post-app-clone-setup "$OLD_APP" "$NEW_APP"