]> git.proxmox.com Git - mirror_corosync.git/commitdiff
Patch to not overwrite defualt configuration file or amf.conf file when
authorSteven Dake <sdake@redhat.com>
Sat, 11 Aug 2007 04:40:42 +0000 (04:40 +0000)
committerSteven Dake <sdake@redhat.com>
Sat, 11 Aug 2007 04:40:42 +0000 (04:40 +0000)
executing make install

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1420 fd59a12c-fef9-0310-b244-a6a79926bd2f

Makefile

index 9abd6d1abc0caaa8f28e019daa2f50bd411a9fa7..87533bcf789dd5ef27ace0ab0e0d1f9192519947 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -166,8 +166,13 @@ endif
 
        install -m 755 exec/aisexec $(DESTDIR)$(SBINDIR)
        install -m 700 exec/keygen $(DESTDIR)$(SBINDIR)/ais-keygen
-       install -m 644 conf/openais.conf $(DESTDIR)$(ETCDIR)/ais
-       install -m 644 conf/amf.conf $(DESTDIR)$(ETCDIR)/ais
+
+       if [ ! -f $(DESTDIR)$(ETCDIR)/ais/openais.conf ] ; then \
+               install -m 644 conf/openais.conf $(DESTDIR)$(ETCDIR)/ais ; \
+       fi
+       if [ ! -f $(DESTDIR)$(ETCDIR)/ais/amf.conf ] ; then \
+               install -m 644 conf/amf.conf $(DESTDIR)$(ETCDIR)/ais ; \
+       fi
 
        install -m 644 include/saAis.h $(DESTDIR)$(INCLUDEDIR)
        install -m 644 include/saAmf.h $(DESTDIR)$(INCLUDEDIR)