From 0ada8cf180d1980b6cedd8fdc8e59b4e7980212a Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Wed, 23 Mar 2022 09:03:18 +0100 Subject: [PATCH] fix to avoid monitorix.conf being overwrited when using Makefile #414 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8dcd6ec..70a12b5 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ RM = rm -f RMD = rmdir SED = sed INSTALL = install -p +BACKUP = -b INSTALL_PROGRAM = $(INSTALL) -m755 INSTALL_DATA = $(INSTALL) -m644 INSTALL_DIR = $(INSTALL) -d @@ -58,7 +59,7 @@ install-bin: $(INSTALL_DATA) css/white.css "$(DESTDIR)$(WWWDIR)/css/white.css" $(INSTALL_DIR) "$(DESTDIR)$(CONFDIR)/$(PN)" - $(INSTALL_DATA) $(PN).conf "$(DESTDIR)$(CONFDIR)/$(PN)/$(PN).conf" + $(INSTALL_DATA) $(BACKUP) $(PN).conf "$(DESTDIR)$(CONFDIR)/$(PN)/$(PN).conf" $(INSTALL_DIR) "$(DESTDIR)$(CONFDIR)/$(PN)/conf.d" $(INSTALL_DIR) "$(DESTDIR)$(CONFDIR)/logrotate.d/"