Skip to content

Commit

Permalink
fix to avoid monitorix.conf being overwrited when using Makefile #414
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaku committed Mar 23, 2022
1 parent 931e315 commit 0ada8cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/"
Expand Down

0 comments on commit 0ada8cf

Please sign in to comment.