apcupsd: addition of backup/includes definition

Added a backup/includes file for apcupsd to backup the
/etc/apcupsd/ directory where all the configuration files
are stored. Currently there is no backup available to
save the state of any changes carried out to the configuration
or action files.
Signed-off-by: Adolf Belka <ahb.ipfire@gmail.com>

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Adolf Belka
2020-11-23 13:08:48 +01:00
committed by Michael Tremer
parent 17a8437e82
commit d0d63bbbee
3 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1 @@
/etc/apcupsd/

View File

@@ -33,3 +33,4 @@ srv/web/ipfire/cgi-bin/upsstats.cgi
#usr/share/man/man8/apcupsd.8
etc/rc.d/init.d/apcupsd
var/ipfire/menu.d/EX-apcupsd.menu
var/ipfire/backup/addons/includes/apcupsd

View File

@@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = apcupsd
PAK_VER = 6
PAK_VER = 7
DEPS =
@@ -88,5 +88,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
ln -sf ../init.d/apcupsd /etc/rc.d/rc3.d/S65apcupsd
ln -sf ../init.d/apcupsd /etc/rc.d/rc0.d/K35apcupsd
ln -sf ../init.d/apcupsd /etc/rc.d/rc6.d/K35apcupsd
install -v -m 644 ${DIR_SRC}/config/backup/includes/apcupsd \
/var/ipfire/backup/addons/includes/apcupsd
@rm -rf $(DIR_APP)
@$(POSTBUILD)