Don't try to edit apache config if DESTDIR is specified destdir
authorBen Webb <bjwebb67@googlemail.com>
Mon, 27 Jun 2011 20:10:04 +0000 (21:10 +0100)
committerBen Webb <bjwebb67@googlemail.com>
Tue, 16 Aug 2011 16:29:06 +0000 (17:29 +0100)
If the DESTDIR variable is set, assume that packaging is happening
so don't try to write to the apache configuration file.

Signed-off-by: Ben Webb <bjwebb67@googlemail.com>
src/gateway/Makefile.am

index 3dafbdc..82cd0f6 100644 (file)
@@ -22,7 +22,7 @@ DISTCLEANFILES = Makefile.in Makefile
 
 install-exec-local: 
        d=`$(APXS2) -q SYSCONFDIR` && \
-               if ! grep mod_placeholder $${d}/httpd.conf 2>&1 >/dev/null ; \
+               if ! grep mod_placeholder $${d}/httpd.conf 2>&1 >/dev/null && [ "$DESTDIR" == "" ] ; \
                then echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" \
                >> $${d}/httpd.conf; \
        fi