From d9e35f80a36741941b5a5ff326ef2bc24ac7e83f Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Thu, 22 Jan 2009 19:32:34 +0000 Subject: [PATCH] Do not overwrite the old config file git-svn-id: https://svn.fhem.de/fhem/trunk@341 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fhem/Makefile b/fhem/Makefile index cd9a0a9ab..8a7006fb5 100644 --- a/fhem/Makefile +++ b/fhem/Makefile @@ -11,6 +11,7 @@ all: @echo or \'make install-pgm2\' to install a web frontend too. install:install-base + -mv $(VARDIR)/fhem.cfg $(VARDIR)/fhem.cfg.`date "+%Y-%m-%d_%H:%M:%S"` cp examples/sample_fhem $(VARDIR)/fhem.cfg @echo @echo @@ -19,6 +20,7 @@ install:install-base install-pgm2:install-base cp webfrontend/pgm2/* $(MODDIR)/FHEM cp docs/commandref.html docs/faq.html docs/HOWTO.html $(MODDIR)/FHEM + -mv $(VARDIR)/fhem.cfg $(VARDIR)/fhem.cfg.`date "+%Y-%m-%d_%H:%M:%S"` cp examples/sample_pgm2 $(VARDIR)/fhem.cfg cd examples; for i in *; do cp $$i $(MODDIR)/FHEM/example.$$i; done @echo