From 72a0f04a6717b5c577bead62773333ee5f384082 Mon Sep 17 00:00:00 2001
From: Matthew Wild <mwild1@gmail.com>
Date: Sun, 30 Nov 2008 01:16:55 +0000
Subject: Don't overwrite config on make install if it already exists

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 38de9e68..bc534525 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ install: prosody.install prosody.cfg.lua.install util/encodings.so util/encoding
 	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:
-- 
cgit v1.2.3