From 5101e10edbd3bf2fae8a7576e6034e0a07cb35a7 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sat, 1 Oct 2016 17:25:55 +0200 Subject: [PATCH] Changed frontend postinst to always reload Apache --- BuildFiles/Packaging/templates/postinst-frontend.template | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/BuildFiles/Packaging/templates/postinst-frontend.template b/BuildFiles/Packaging/templates/postinst-frontend.template index 47726e4f..73ff695d 100644 --- a/BuildFiles/Packaging/templates/postinst-frontend.template +++ b/BuildFiles/Packaging/templates/postinst-frontend.template @@ -76,12 +76,13 @@ chown www-data:www-data /etc/swarmops/database.config chown www-data:www-data /etc/swarmops/symmetricKey.config # if we stopped Apache in preinst (1st install), restart it -# otherwise reload Apache config to force flush of Mono caches if [ -e /tmp/swarmops-restart-apache.flag ]; then /etc/init.d/apache2 start rm /tmp/swarmops-restart-apache.flag -else - /etc/init.d/apache2 reload fi + +# Always end a frontend update with an Apache reload to clear caches + +/etc/init.d/apache2 reload