haproxy: Create/restore backup when package is installed/uninstalled

Fixes: #11946
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-12-10 00:36:04 +00:00
parent ede4314397
commit c519be4226
3 changed files with 3 additions and 1 deletions

View File

@@ -23,6 +23,7 @@
#
. /opt/pakfire/lib/functions.sh
extract_files
restore_backup ${NAME}
# Enable autostart
ln -sf ../init.d/haproxy /etc/rc.d/rc0.d/K25haproxy

View File

@@ -22,5 +22,6 @@
############################################################################
#
. /opt/pakfire/lib/functions.sh
make_backup ${NAME}
remove_files
rm -rfv /etc/rc.d/rc*.d/*haproxy