postfix: add backup/restore at package update.

This commit is contained in:
Arne Fitzenreiter
2015-06-10 18:45:29 +02:00
parent 8bd45f85ef
commit b65251c87d
3 changed files with 7 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash
############################################################################
# #
# This file is part of the IPFire Firewall. #

View File

@@ -23,10 +23,12 @@
#
. /opt/pakfire/lib/functions.sh
extract_files
restore_backup ${NAME}
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

View File

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