Changed frontend postinst to always reload Apache

This commit is contained in:
Rick Falkvinge
2016-10-01 17:25:55 +02:00
parent 4cdd0d11bc
commit 5101e10edb
@@ -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