From: Chris Sharp Date: Fri, 29 Mar 2019 14:19:07 +0000 (-0400) Subject: Check for existence of httpd.conf before trying to grep it X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fcsharp%2Fcheck_for_httpd_conf;p=working%2FOpenSRF.git Check for existence of httpd.conf before trying to grep it Signed-off-by: Chris Sharp --- diff --git a/src/gateway/Makefile.am b/src/gateway/Makefile.am index d4f327d..c973baa 100644 --- a/src/gateway/Makefile.am +++ b/src/gateway/Makefile.am @@ -27,7 +27,7 @@ DISTCLEANFILES = Makefile.in Makefile install-exec-local: d=`$(APXS2) -q SYSCONFDIR` && \ - if ! grep mod_placeholder $${d}/httpd.conf 2>&1 >/dev/null ; \ + if -e $${d}/httpd.conf && ! grep mod_placeholder $${d}/httpd.conf 2>&1 >/dev/null ; \ then echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" \ >> $${d}/httpd.conf; \ fi