From 8e12bc9facad70af7b870cae8e825313097e3049 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Fri, 29 Mar 2019 10:19:07 -0400 Subject: [PATCH] Check for existence of httpd.conf before trying to grep it Signed-off-by: Chris Sharp --- src/gateway/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0