diff --git a/states/certificates/dehydrated/hooks/deploy.sh b/states/certificates/dehydrated/hooks/deploy.sh index 7d0e2a0..4e41d00 100755 --- a/states/certificates/dehydrated/hooks/deploy.sh +++ b/states/certificates/dehydrated/hooks/deploy.sh @@ -7,13 +7,14 @@ action=$1 shift deploy_cert() { - cp -R /var/lib/dehydrated/certs/* /var/local/certificates/ + cp -a /var/lib/dehydrated/certs/* /var/local/certificates/ chown -R root:ssl-cert /var/local/certificates/ DOMAIN="$1" case $DOMAIN in "mail.lunch.org.uk") systemctl restart exim4 + systemctl reload dovecot ;; esac }