Changeset

501:ea61e191043e

Don't overwrite config on make install if it already exists
author Matthew Wild <mwild1@gmail.com>
date Sun, 30 Nov 2008 01:16:55 +0000
parents 500:6468ea154296
children 502:21dc299387a6
files Makefile
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Nov 30 06:14:41 2008 +0500
+++ b/Makefile	Sun Nov 30 01:16:55 2008 +0000
@@ -25,7 +25,7 @@
 	install -m644 plugins/* $(MODULES)
 	install -m644 certs/* $(CONFIG)/certs
 	install -m644 plugins/* $(MODULES)
-	install -m644 prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua
+	test -e $(CONFIG)/prosody.cfg.lua || install -m644 prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua
 	$(MAKE) install -C util-src
 
 clean: