Skip to content

Commit 0c007ff

Browse files
committed
Ensure legacy assets cleanup is optional.
1 parent 243ba54 commit 0c007ff

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
@@ -303,6 +303,10 @@ function do_magento_assets_install() {
303303
}
304304

305305
function do_magento_assets_cleanup() {
306+
if [ -z "$DATABASE_ARCHIVE_PATH" ] && [ -z "$ASSET_ARCHIVE_PATH" ]; then
307+
return
308+
fi
309+
306310
if [ -d /app/tools/assets/ ]; then
307311
find /app/tools/assets/ -type f ! -path "*${DATABASE_ARCHIVE_PATH}" -delete
308312
fi

0 commit comments

Comments
 (0)