]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
postfix: add backup/restore at package update.
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 10 Jun 2015 16:45:29 +0000 (18:45 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 10 Jun 2015 16:45:29 +0000 (18:45 +0200)
src/paks/default/uninstall.sh
src/paks/postfix/install.sh
src/paks/postfix/uninstall.sh

index a7b8a5370f68e23809d3bd94083f0150545980cb..88f5faf514580a367c6fa05a655ea03472aa0888 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+       #!/bin/bash
 ############################################################################
 #                                                                          #
 # This file is part of the IPFire Firewall.                                #
 ############################################################################
 #                                                                          #
 # This file is part of the IPFire Firewall.                                #
index 56c23e2c26bdea3576128c2881ab25171122267d..0932d2e54e46c5af3360449669dec2c27d9dcf8a 100644 (file)
 #
 . /opt/pakfire/lib/functions.sh
 extract_files
 #
 . /opt/pakfire/lib/functions.sh
 extract_files
+restore_backup ${NAME}
 postalias /etc/aliases
 # Set postfix's hostname
 postconf -e "myhostname=$(hostname -f)"
 postalias /etc/aliases
 # Set postfix's hostname
 postconf -e "myhostname=$(hostname -f)"
-/etc/init.d/postfix start
+
+start_service ${NAME}
 
 # Enable autostart for postfix
 ln -sf  ../init.d/postfix /etc/rc.d/rc0.d/K25postfix
 
 # Enable autostart for postfix
 ln -sf  ../init.d/postfix /etc/rc.d/rc0.d/K25postfix
index 39f1ef969c3b233713530dc1a8ae23e3f039f3f9..bc70451a17f90af3ae12de6fc4d87894e8d2118a 100644 (file)
@@ -22,5 +22,8 @@
 ############################################################################
 #
 . /opt/pakfire/lib/functions.sh
 ############################################################################
 #
 . /opt/pakfire/lib/functions.sh
+extract_backup_includes
+stop_service ${NAME}
+make_backup ${NAME}
 remove_files
 rm -rfv /etc/rc.d/rc*.d/*postfix
 remove_files
 rm -rfv /etc/rc.d/rc*.d/*postfix