From: Michael Tremer Date: Mon, 10 Dec 2018 00:36:04 +0000 (+0000) Subject: haproxy: Create/restore backup when package is installed/uninstalled X-Git-Tag: v2.21-core127~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c519be42262c629abac86fb251a3f3921d42310d;p=ipfire-2.x.git haproxy: Create/restore backup when package is installed/uninstalled Fixes: #11946 Signed-off-by: Michael Tremer --- 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