summaryrefslogtreecommitdiffstats
path: root/debian/postfix.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:44:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:44:12 +0000
commitb08c6c27eea5250c588a2d9df627265c727eae5c (patch)
treebfb17dd9ffcb037426633f06a2a0532878444870 /debian/postfix.postinst
parentReleasing progress-linux version 3.9.0-1~progress7.99u1. (diff)
downloadpostfix-b08c6c27eea5250c588a2d9df627265c727eae5c.tar.xz
postfix-b08c6c27eea5250c588a2d9df627265c727eae5c.zip
Merging debian version 3.9.0-2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/postfix.postinst')
-rw-r--r--debian/postfix.postinst20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/postfix.postinst b/debian/postfix.postinst
index 6168a9f..42a8657 100644
--- a/debian/postfix.postinst
+++ b/debian/postfix.postinst
@@ -13,6 +13,26 @@ CHROOT=/var/spool/postfix
. /usr/share/postfix/postinst.functions
+if [ "$1" = triggered ]; then
+ echo "Restarting postfix"
+ [ -x /usr/sbin/invoke-rc.d ] && \
+ INIT="invoke-rc.d postfix" || \
+ INIT="/etc/init.d/postfix"
+ # start postfix
+ if [ -f /var/spool/postfix/restart ]; then
+ rm -f /var/spool/postfix/restart
+ ${INIT} restart
+ else
+ # or maybe just restart postfix
+ if [ -f /var/spool/postfix/reload ]; then
+ rm -f /var/spool/postfix/reload
+ ${INIT} restart
+ fi
+ fi
+
+ exit 0
+fi
+
set_maildrop_perms() {
MAILDROP=${CHROOT}/maildrop
POSTDROP=/usr/sbin/postdrop