From 7c2092d48f1356ee7b82b5f4da9c879c9fd85cb7 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Sun, 5 Oct 2014 08:40:07 -0400 Subject: [PATCH] remove apache before installing nginx, see #224 --- setup/web.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup/web.sh b/setup/web.sh index 60c21fd..e72143e 100755 --- a/setup/web.sh +++ b/setup/web.sh @@ -5,6 +5,14 @@ source setup/functions.sh # load our functions 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. # # Turn off nginx's default website.