fix: do not copy the cache directory to cloned applications

This commit is contained in:
Jose Diaz-Gonzalez
2017-12-13 00:42:45 -05:00
parent 59414fe231
commit c46efa54b4

View File

@@ -22,7 +22,7 @@ apps_clone_cmd() {
apps_create "$NEW_APP"
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
if [[ -d "$NEW_CACHE_DIR" ]] && ! rmdir "$NEW_CACHE_DIR"; then