fix: do not copy the cache directory to cloned applications
This commit is contained in:
1 parent
59414fe231
commit
c46efa54b4
1 file changed
+1
-1
@@ -22,7 +22,7 @@ apps_clone_cmd() {
|
|||||||
|
|
||||||
apps_create "$NEW_APP"
|
apps_create "$NEW_APP"
|
||||||
pushd "$DOKKU_ROOT/$OLD_APP/." > /dev/null
|
pushd "$DOKKU_ROOT/$OLD_APP/." > /dev/null
|
||||||
find ./* -not \( -name .cache \) | cpio -pvdmu "$DOKKU_ROOT/$NEW_APP"
|
find ./* -not \( -name .cache \) | grep -v "./cache" | cpio -pvdmu "$DOKKU_ROOT/$NEW_APP"
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
if [[ -d "$NEW_CACHE_DIR" ]] && ! rmdir "$NEW_CACHE_DIR"; then
|
if [[ -d "$NEW_CACHE_DIR" ]] && ! rmdir "$NEW_CACHE_DIR"; then
|
||||||
|
|||||||
Reference in new issue
Block a user