From f6f7c4a3613e4a36a5912e4526beaa64ee94d4da Mon Sep 17 00:00:00 2001 From: Gustavo Trott Date: Fri, 12 Apr 2024 13:47:41 -0300 Subject: [PATCH 1/2] build html5: Clear Nginx cache to refresh Meteor assets --- build/packages-template/bbb-html5/after-install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/packages-template/bbb-html5/after-install.sh b/build/packages-template/bbb-html5/after-install.sh index f73912f032..a6a98bee06 100644 --- a/build/packages-template/bbb-html5/after-install.sh +++ b/build/packages-template/bbb-html5/after-install.sh @@ -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" + sudo find /tmp/meteor-assets-nginx-cache/ -type f -exec rm {} + +fi + startService bbb-html5 || echo "bbb-html5 service could not be registered or started" From c22de5b9b72d2217259b5342b271c95540d28953 Mon Sep 17 00:00:00 2001 From: Gustavo Trott Date: Fri, 12 Apr 2024 13:52:03 -0300 Subject: [PATCH 2/2] Remove also directories --- build/packages-template/bbb-html5/after-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/packages-template/bbb-html5/after-install.sh b/build/packages-template/bbb-html5/after-install.sh index a6a98bee06..79fbb3f4a9 100644 --- a/build/packages-template/bbb-html5/after-install.sh +++ b/build/packages-template/bbb-html5/after-install.sh @@ -80,7 +80,7 @@ chmod go+r /usr/share/meteor/bundle/programs/server/assets/app/config/settings.y # 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" - sudo find /tmp/meteor-assets-nginx-cache/ -type f -exec rm {} + + rm -rf /tmp/meteor-assets-nginx-cache/* fi startService bbb-html5 || echo "bbb-html5 service could not be registered or started"