Post Debian 7 Installation Support Removal Changes
authorJason Stephenson <jason@sigio.com>
Mon, 3 Dec 2018 20:57:41 +0000 (15:57 -0500)
committerJason Stephenson <jason@sigio.com>
Mon, 3 Dec 2018 21:00:01 +0000 (16:00 -0500)
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 <jason@sigio.com>
scripts/postbuild.sh

index 3feaddd..a40bd20 100755 (executable)
@@ -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