fix to avoid monitorix.conf being overwrited when using Makefile #414

This commit is contained in:
Jordi Sanfeliu 2022-03-23 09:03:18 +01:00
parent 931e315f79
commit 0ada8cf180
1 changed files with 2 additions and 1 deletions

View File

@ -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/"