From: Ben Webb Date: Mon, 27 Jun 2011 20:10:04 +0000 (+0100) Subject: Don't try to edit apache config if DESTDIR is specified X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fdestdir;p=opensrf%2Fbjwebb.git 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 --- 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