From: Michael Tremer Date: Thu, 11 Mar 2021 15:09:40 +0000 (+0000) Subject: nagios_nrpe: Backup configuration before update X-Git-Tag: v2.25-core155~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e8767976c1b0080bb650fba5e5608157bb6ba62;p=ipfire-2.x.git nagios_nrpe: Backup configuration before update Signed-off-by: Michael Tremer --- diff --git a/config/backup/includes/nagios_nrpe b/config/backup/includes/nagios_nrpe new file mode 100644 index 0000000000..ce6de7ae7a --- /dev/null +++ b/config/backup/includes/nagios_nrpe @@ -0,0 +1 @@ +/etc/nagios/nrpe.cfg diff --git a/config/rootfiles/packages/nagios_nrpe b/config/rootfiles/packages/nagios_nrpe index 1da6c3bafc..f2539adca5 100644 --- a/config/rootfiles/packages/nagios_nrpe +++ b/config/rootfiles/packages/nagios_nrpe @@ -6,3 +6,4 @@ etc/rc.d/init.d/nrpe usr/bin/nrpe #usr/lib/nagios usr/lib/nagios/check_nrpe +var/ipfire/backup/addons/includes/nagios_nrpe diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe index a011a75b4f..a8b4b3676b 100644 --- a/lfs/nagios_nrpe +++ b/lfs/nagios_nrpe @@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = nagios_nrpe -PAK_VER = 7 +PAK_VER = 8 DEPS = nagios-plugins @@ -96,5 +96,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) # install initscript $(call INSTALL_INITSCRIPT,nrpe) + install -v -m 644 ${DIR_SRC}/config/backup/includes/nagios_nrpe \ + /var/ipfire/backup/addons/includes/nagios_nrpe + @rm -rf $(DIR_APP) @$(POSTBUILD)