From c519be42262c629abac86fb251a3f3921d42310d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 10 Dec 2018 00:36:04 +0000 Subject: [PATCH] haproxy: Create/restore backup when package is installed/uninstalled Fixes: #11946 Signed-off-by: Michael Tremer --- lfs/haproxy | 2 +- src/paks/haproxy/install.sh | 1 + src/paks/haproxy/uninstall.sh | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lfs/haproxy b/lfs/haproxy index da56f889d4..51414d8b6a 100644 --- a/lfs/haproxy +++ b/lfs/haproxy @@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = haproxy -PAK_VER = 7 +PAK_VER = 8 DEPS = "" diff --git a/src/paks/haproxy/install.sh b/src/paks/haproxy/install.sh index 45b2161b18..8282acb283 100644 --- a/src/paks/haproxy/install.sh +++ b/src/paks/haproxy/install.sh @@ -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 diff --git a/src/paks/haproxy/uninstall.sh b/src/paks/haproxy/uninstall.sh index b01ee1147e..9621b52a07 100644 --- a/src/paks/haproxy/uninstall.sh +++ b/src/paks/haproxy/uninstall.sh @@ -22,5 +22,6 @@ ############################################################################ # . /opt/pakfire/lib/functions.sh +make_backup ${NAME} remove_files rm -rfv /etc/rc.d/rc*.d/*haproxy -- 2.39.5