Merge pull request #20002 from gustavotrott/html5-package-clear-cache

build (html5): Add step to clear Nginx cache to refresh Meteor assets
This commit is contained in:
Anton Georgiev 2024-04-12 13:40:31 -04:00 committed by GitHub
commit 90f938a7d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,5 +77,11 @@ chown root:root /usr/lib/systemd/system/disable-transparent-huge-pages.service
# Ensure settings is readable
chmod go+r /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml
# Clear nginx cache for meteor-assets
if [ -d /tmp/meteor-assets-nginx-cache/ ] && [ "$(ls -A /tmp/meteor-assets-nginx-cache/)" ] ; then
echo "Clearing Nginx cache to refresh Meteor assets"
rm -rf /tmp/meteor-assets-nginx-cache/*
fi
startService bbb-html5 || echo "bbb-html5 service could not be registered or started"