diff options
Diffstat (limited to 'dehydrated/share/hooks')
-rwxr-xr-x | dehydrated/share/hooks/exit_hook.service-reload | 9 |
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 |