Files
using.cash/BuildFiles/Packaging/templates/preinst-frontend.template
T
2016-03-16 01:41:58 +01:00

18 lines
566 B
Bash

#!/bin/bash
# To circumvent lib-mod-mono bug on first install, stop Apache if it is currently running, before we try to install.
# (It's very rude to shut down services without asking first like this, but even more rude of the lib-mod-mono
# installer to just bloody hang.)
if [ ! -e /etc/swarmops/database.config ]; then
if [ -e /etc/init.d/apache2 ]; then
if [ /etc/init.d/apache2 status > /dev/null ]; then
# Set a flag to postinst to restart Apache
echo foo > /tmp/swarmops-restart-apache.flag
/etc/init.d/apache2 stop
fi
fi
fi