1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-25 02:47:04 +00:00

remove apache before installing nginx, see #224

This commit is contained in:
Joshua Tauberer 2014-10-05 08:40:07 -04:00
parent 5fd107cae5
commit 7c2092d48f

View File

@ -5,6 +5,14 @@
source setup/functions.sh # load our functions source setup/functions.sh # load our functions
source /etc/mailinabox.conf # load global vars source /etc/mailinabox.conf # load global vars
# Some Ubuntu images start off with Apache. Remove it since we
# will use nginx. Use autoremove to remove any Apache depenencies.
if [ -f /usr/sbin/apache2 ]; then
echo Removing apache...
hide_output apt-get -y purge apache2 apache2-*
hide_output apt-get -y --purge autoremove
fi
# Install nginx and a PHP FastCGI daemon. # Install nginx and a PHP FastCGI daemon.
# #
# Turn off nginx's default website. # Turn off nginx's default website.