Commit 077559ec authored by Eric's avatar Eric

restart postfix & dovecot si un nouveau certificat a ete genere

parent 56a1eb3f
#!/bin/bash
# Script Licence: GNU/GPL v3
# 2017 - Eric Seigne <eric.seigne@abul.org>
# 2017-2018 - Eric Seigne <eric.seigne@abul.org>
# automatic renew let's encrypt certificates
LINKTOTEST="/var/lib/dehydrated/certs/mail.sud-ouest2.org/privkey.pem"
TESTCERTBEFORE=`readlink -f ${LINKTOTEST}`
dehydrated -c
TESTCERTAFTER=`readlink -f ${LINKTOTEST}`
if [ "${TESTCERTBEFORE}" != "${TESTCERTAFTER}" ]; then
#relancer les services qui font reference a ces certificats ...
systemctl restart postfix
systemctl restart dovecot
fi
#ensuite il faut propager les certificats sur les serveurs proxy frontaux ...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment