From: Chris Sharp Date: Wed, 28 Jun 2017 12:17:39 +0000 (-0400) Subject: Reconfiguring apache2 section: X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=606699463e44f07338addd3e60c80b77c538bd34;p=contrib%2Fpines%2Fgenasys.git Reconfiguring apache2 section: - rather than rm-ing the conf file, use a2dissite - remove sed of ports.conf that isn't doing anything - SSLv3 is already disabled by default in apache2, so no need to do it again. - remove redundant SSLv3 section - remove commented out/deprecated sections --- diff --git a/templates/setup-head.sh b/templates/setup-head.sh index 760b5f4..6756087 100755 --- a/templates/setup-head.sh +++ b/templates/setup-head.sh @@ -148,55 +148,12 @@ a2disconf serve-cgi-bin if [ -e /etc/apache2/sites-enabled/000-default.conf ] then - rm /etc/apache2/sites-enabled/000-default.conf + a2dissite 000-default.conf fi -sed -i 's^NameVirtualHost^#NameVirtualHost^g' /etc/apache2/ports.conf - -if [ -e /etc/apache2/mods-enabled/ssl.conf ] -then - sed -i '/SSL v2 is no longer supported/a \\tSSLProtocol all -SSLv3' -else - echo "WARNING!!! Could not disable SSLv3 in apache2 conf" - echo "/etc/apache2/mods-enabled/ssl.conf is missing." - sleep 10 -fi -#Enable extended status in Apache2 for Munin. -#sed -i '/> /etc/rsyslog.conf -# echo "## Evergreen logger configuration" >> /etc/rsyslog.conf -# echo "local0.* @@logger01.CLUSTER_DOMAINNAME:514" >> /etc/rsyslog.conf -# echo "local1.* @@logger01.CLUSTER_DOMAINNAME:514" >> /etc/rsyslog.conf -# echo "local2.* @@logger01.CLUSTER_DOMAINNAME:514" >> /etc/rsyslog.conf -# echo "local3.* @@logger01.CLUSTER_DOMAINNAME:514" >> /etc/rsyslog.conf -# echo "local6.* @@logger01.CLUSTER_DOMAINNAME:514" >> /etc/rsyslog.conf -# echo "local7.* @@logger01.CLUSTER_DOMAINNAME:514" >> /etc/rsyslog.conf -#fi - ### Setup database schema... We do this from the head of the first brick. if cat /etc/hostname|grep -q brick01-head then