Commits

Jimmy Li [Atlassian] committed 7c0034d

Use mktemp to create temporary HTTPD_CONF file

  • Participants
  • Parent commits 3b78563

Comments (0)

Files changed (1)

File src/crowdsso/Makefile.am

 CFLAGS=-g -O1   # -O2 causes mysterious crashes
 TESTS = test.py
 TESTS_ENVIRONMENT = APACHE_BIN_DIR=@APACHE_BIN_DIR@
+HTTPD_CONF_TEMP = `mktemp`
 
 test.py : httpd/conf/common.conf httpd/conf/httpd_svn.conf
 
 	APACHE_MODULES_DIR=@APACHE_MODULES_DIR@ CURDIR=$(CURDIR) envsubst < httpd/conf/common.conf.in > httpd/conf/common.conf
 
 install:
-	cp @HTTPD_CONF@ /tmp/httpd.conf.crowdsso.bak
+	cp @HTTPD_CONF@ @HTTPD_CONF_TEMP@
 	@APXS@ -i -a mod_auth_crowdsso.la
-	@APACHECTL@ configtest || mv /tmp/httpd.conf.crowdsso.bak @HTTPD_CONF@
+	@APACHECTL@ configtest || mv @HTTPD_CONF_TEMP@ @HTTPD_CONF@
 	@APACHECTL@ graceful