Explicitly enable apache2 on boot and disable IPV6 for NFS
authorAndy Witter <awitter@georgialibraries.org>
Thu, 17 Jan 2019 19:43:26 +0000 (14:43 -0500)
committerAndy Witter <awitter@georgialibraries.org>
Thu, 17 Jan 2019 19:43:26 +0000 (14:43 -0500)
templates/setup-head.sh
templates/setup.sh

index d2e9884..9cf62c5 100755 (executable)
@@ -134,6 +134,11 @@ fi
 
 ### fix NFS start bug in systemd
 systemctl add-wants nfs-mountd.service rpcbind.service
+if [ -e "/etc/netconfig" ] #Disable IPV6/ipv6
+then
+       sed -i 's/^tcp6/#tcp6/g' /etc/netconfig
+       sed -i 's/^udp6/#udp6/g' /etc/netconfig
+fi
 
 ### Fix ejabberd/apparmor bug - commented out because it's not working
 #FixAppArmorEJabberD
@@ -449,6 +454,7 @@ SetupMonitoring
 
 ### Enable systemd autogen service for first boot
 systemctl enable autogen
+systemctl enable apache2
 
 echo
 echo
index e9d1d75..2255fab 100755 (executable)
@@ -221,6 +221,11 @@ if cat tar_file_apt.list | grep -q nfs
 then
        systemctl add-wants nfs-mountd.service rpcbind.service
 fi
+if [ -e "/etc/netconfig" ] #Disable IPV6/ipv6
+then
+        sed -i 's/^tcp6/#tcp6/g' /etc/netconfig
+        sed -i 's/^udp6/#udp6/g' /etc/netconfig
+fi
 
 ### Fix ejabberd/apparmor bug - commented out because it didn't work
 #FixAppArmorEJabberD