From a997e052e0484cd6b48d3d3e3c84af99f3f7435a Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Thu, 17 Jan 2019 14:43:26 -0500 Subject: [PATCH] Explicitly enable apache2 on boot and disable IPV6 for NFS --- templates/setup-head.sh | 6 ++++++ templates/setup.sh | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/templates/setup-head.sh b/templates/setup-head.sh index d2e9884..9cf62c5 100755 --- a/templates/setup-head.sh +++ b/templates/setup-head.sh @@ -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 diff --git a/templates/setup.sh b/templates/setup.sh index e9d1d75..2255fab 100755 --- a/templates/setup.sh +++ b/templates/setup.sh @@ -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 -- 2.11.0