Restart some services after removing AlternC (.conf files have been replaced)

This commit is contained in:
Axel ROGER 2012-08-27 13:17:25 +00:00
parent f2349194e6
commit 73d3d94345
1 changed files with 5 additions and 0 deletions

View File

@ -65,6 +65,11 @@ case "$1" in
BACKUP=$(ls /var/backups/alternc/etc-original*.tar.gz | head -n 1) BACKUP=$(ls /var/backups/alternc/etc-original*.tar.gz | head -n 1)
tar -C / -xf "$BACKUP" 2>/dev/null || true tar -C / -xf "$BACKUP" 2>/dev/null || true
# Reload services which use these files
for service in bind9 postfix proftpd dovecot apache2; do
invoke-rc.d $service force-reload || true
done
;; ;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade) remove|upgrade|failed-upgrade|abort-install|abort-upgrade)
;; ;;