From: Jason Stephenson Date: Mon, 3 Dec 2018 20:57:41 +0000 (-0500) Subject: Post Debian 7 Installation Support Removal Changes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2e4ead1c570d24ebc1bc60bf3d190dfd5037d34e;p=contrib%2Fmasslnc%2Fvmscripts.git Post Debian 7 Installation Support Removal Changes Update scripts/postbuild.sh to check for apache/eg_startup before copying it. The file was moved to apache_24/eg_startup when Debian 7 Wheezy installation support was removed from Evergreen 3.2. Signed-off-by: Jason Stephenson --- diff --git a/scripts/postbuild.sh b/scripts/postbuild.sh index 3feaddd..a40bd20 100755 --- a/scripts/postbuild.sh +++ b/scripts/postbuild.sh @@ -132,7 +132,11 @@ else cp apache/eg.conf /etc/apache2/sites-available/evergreen cp apache/eg_vhost.conf /etc/apache2/eg_vhost.conf fi -cp apache/eg_startup /etc/apache2/eg_startup +if [ -f "apache/eg_startup" ]; then + cp apache/eg_startup /etc/apache2/eg_startup +else + cp apache_24/eg_startup /etc/apache2/eg_startup +fi sed -i -e 's/APACHE_RUN_USER=www-data/APACHE_RUN_USER=opensrf/' /etc/apache2/envvars sed -i -e 's/StartServers 5/StartServers 20/' -e 's/MaxRequestsPerChild 0/MaxRequestsPerChild 10000/' /etc/apache2/apache2.conf if [ -f '/etc/apache2/ssl/chain.crt' ]; then