From 58c5723e1cbe9d08d116cc64990ae069fc91cbab Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Mon, 27 Jun 2011 21:10:04 +0100 Subject: [PATCH] Don't try to edit apache config if DESTDIR is specified 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 --- 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 3dafbdc..82cd0f6 100644 --- a/src/gateway/Makefile.am +++ b/src/gateway/Makefile.am @@ -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 -- 2.11.0