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>
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