Don't overwrite config on make install if it already exists
authorMatthew Wild <mwild1@gmail.com>
Sun, 30 Nov 2008 01:16:55 +0000 (01:16 +0000)
committerMatthew Wild <mwild1@gmail.com>
Sun, 30 Nov 2008 01:16:55 +0000 (01:16 +0000)
Makefile

index 38de9e688538c36ec23fdc113a5cbef249f4827a..bc53452580780d32a590db9890e40b5b5c2cf5db 100644 (file)
--- 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: