summaryrefslogtreecommitdiffstats
path: root/dehydrated/share/hooks/exit_hook.service-reload
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-07-07 10:22:15 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-07-07 14:14:23 +0000
commit7b04823e0c24916d7d8b2c37d5ea78c0cff959aa (patch)
tree29f3a3c434d99779760d0cd9b56de2703fad3b2c /dehydrated/share/hooks/exit_hook.service-reload
parentReworking chrony workaround (#1013882) now that we know it's going to be perm... (diff)
downloadservice-tools-7b04823e0c24916d7d8b2c37d5ea78c0cff959aa.tar.xz
service-tools-7b04823e0c24916d7d8b2c37d5ea78c0cff959aa.zip
Adding postfix to service-reload dehydrated hook.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xdehydrated/share/hooks/exit_hook.service-reload9
1 files changed, 9 insertions, 0 deletions
diff --git a/dehydrated/share/hooks/exit_hook.service-reload b/dehydrated/share/hooks/exit_hook.service-reload
index 02dd6c5..cec5583 100755
--- a/dehydrated/share/hooks/exit_hook.service-reload
+++ b/dehydrated/share/hooks/exit_hook.service-reload
@@ -54,3 +54,12 @@ then
echo " done."
fi
fi
+
+if grep -r -qs '^smtpd_tls' /etc/postfix/main.cf/* && service postfix status > /dev/null 2>&1
+then
+ echo -n " + postfix:"
+
+ service postfix restart
+
+ echo " done."
+fi