Skip to content

Commit 1862f6f

Browse files
Merge pull request #400 from continuouspipe/feature/ensure-legacy-assets-cleanup-is-optional
Ensure legacy assets cleanup is optional.
2 parents cda64ba + 0c007ff commit 1862f6f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

magento2/usr/local/share/magento2/magento_functions.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ function do_magento_assets_install() {
322322
}
323323

324324
function do_magento_assets_cleanup() {
325+
if [ -z "$DATABASE_ARCHIVE_PATH" ] && [ -z "$ASSET_ARCHIVE_PATH" ]; then
326+
return
327+
fi
328+
325329
if [ -d /app/tools/assets/ ]; then
326330
find /app/tools/assets/ -type f ! -path "*${DATABASE_ARCHIVE_PATH}" -delete
327331
fi

0 commit comments

Comments
 (0)