From a9c132eb4409cf1be3fd6be77197e8e76f49f0b4 Mon Sep 17 00:00:00 2001 From: Kyle Warwick-Mathieu Date: Thu, 9 Apr 2015 21:29:08 -0400 Subject: [PATCH] Added a real fallback to $mod4 (aka proxy mod) I decided to use an if statement (hasn't been tested) to enable mod4 only if the first 3 mods fail to enable --- server-setup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server-setup.sh b/server-setup.sh index 10b117f..92a80bd 100644 --- a/server-setup.sh +++ b/server-setup.sh @@ -52,6 +52,9 @@ echo "Okay! Lets hope nothing broke during this process..." sleep 5s echo "Now lets enable some modules so we can make all of this work..." a2enmod $mod1 $mod2 $mod3 $mod4 +if [ $? != "0"] then: + a2enmod $mod4 +fi echo "Great! Everything appears to be set up as far as Apache" service apache2 restart service apache2 reload