nagios_nrpe: Backup configuration before update

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2021-03-11 15:09:40 +00:00
parent 7ba3706b0f
commit 1e8767976c
3 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1 @@
/etc/nagios/nrpe.cfg

View File

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

View File

@@ -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)