diff --git a/roles/web-app-shopware/files/init.sh b/roles/web-app-shopware/files/init.sh index 395d185919..9d263ef1e0 100644 --- a/roles/web-app-shopware/files/init.sh +++ b/roles/web-app-shopware/files/init.sh @@ -133,11 +133,13 @@ $PHP_BIN bin/console dal:refresh:index || log "dal:refresh:index failed (non-cri # --------------------------- # 5) Verify admin bundles # --------------------------- -if [ ! -d "public/bundles/administration" ]; then - fail "Missing directory public/bundles/administration (asset build failed)" -fi -if ! ls public/bundles/administration/* >/dev/null 2>&1; then - fail "No files found in public/bundles/administration (asset build failed)" +if [ "${SHOPWARE_OBJSTORE_ENABLED:-false}" != "true" ]; then + if [ ! -d "public/bundles/administration" ]; then + fail "Missing directory public/bundles/administration (asset build failed)" + fi + if ! ls public/bundles/administration/* >/dev/null 2>&1; then + fail "No files found in public/bundles/administration (asset build failed)" + fi fi # --------------------------- diff --git a/roles/web-app-shopware/templates/env.j2 b/roles/web-app-shopware/templates/env.j2 index 04ec068929..08774e04c9 100644 --- a/roles/web-app-shopware/templates/env.j2 +++ b/roles/web-app-shopware/templates/env.j2 @@ -6,6 +6,7 @@ APP_DEBUG="{{ MODE_DEBUG | bool| ternary(1, 0) }}" # Shopware APP_ENV={{ 'dev' if (ENVIRONMENT | lower) == 'development' else 'prod' }} INSTANCE_ID={{ application_id }} +SHOPWARE_OBJSTORE_ENABLED={{ SHOPWARE_OBJSTORE_ENABLED | string | lower }} # Proxy TRUSTED_PROXIES="{{ ([networks.internet.values() | select | list, NETWORK_TRUSTED_PROXY_CIDRS] | flatten) | join(',') }}"