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 --- config/backup/includes/apcupsd | 1 + config/rootfiles/packages/apcupsd | 1 + lfs/apcupsd | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 config/backup/includes/apcupsd
diff --git a/config/backup/includes/apcupsd b/config/backup/includes/apcupsd new file mode 100644 index 000000000..82dcd84ed --- /dev/null +++ b/config/backup/includes/apcupsd @@ -0,0 +1 @@ +/etc/apcupsd/ diff --git a/config/rootfiles/packages/apcupsd b/config/rootfiles/packages/apcupsd index b58ed2b47..a28c961eb 100644 --- a/config/rootfiles/packages/apcupsd +++ b/config/rootfiles/packages/apcupsd @@ -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 diff --git a/lfs/apcupsd b/lfs/apcupsd index 22818eda5..6240015d1 100644 --- a/lfs/apcupsd +++ b/lfs/apcupsd @@ -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)