Check for existence of httpd.conf before trying to grep it user/csharp/check_for_httpd_conf
authorChris Sharp <csharp@georgialibraries.org>
Fri, 29 Mar 2019 14:19:07 +0000 (10:19 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 29 Mar 2019 14:19:07 +0000 (10:19 -0400)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
src/gateway/Makefile.am

index d4f327d..c973baa 100644 (file)
@@ -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