[pmg-devel] [PATCH pmg-api] restart postfix after first installing pmg-api

Dominik Csapak d.csapak at proxmox.com
Fri Jul 26 11:23:34 CEST 2019


when installing on debian, restarting postfix is necessary for it
to change the bind address (default is 127.0.0.1)

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 debian/postinst | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/postinst b/debian/postinst
index ae8d275..8f84fc6 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -32,6 +32,7 @@ case "$1" in
 		    deb-systemd-invoke reload-or-try-restart postgresql.service
 		fi
 		pmgconfig sync --restart
+		deb-systemd-invoke restart postfix.service
 	    fi
 
 	    pmgdb update  >/dev/null 2>&1 &
-- 
2.20.1




More information about the pmg-devel mailing list