From 2e4ead1c570d24ebc1bc60bf3d190dfd5037d34e Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Mon, 3 Dec 2018 15:57:41 -0500 Subject: [PATCH] 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 --- scripts/postbuild.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.11.0