File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
copy/var/zoneinit/includes Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 66 local ssl_home=${1}
77 local mdata_var=${2}
88 local filename=${3}
9- local service=${4- ${filename} }
9+ local service=${4}
1010
1111 mkdir -p " ${ssl_home} "
1212
@@ -34,7 +34,8 @@ ssl() {
3434 grep -q ' ^#!/usr/bin/env bash' || echo ' #!/usr/bin/env bash' > ${le_home} renew-hook.sh
3535 echo " cat ${le_live} fullchain.pem > ${ssl_home} /${filename} .crt" >> ${le_home} renew-hook.sh
3636 echo " cat ${le_live} privkey.pem > ${ssl_home} /${filename} .key" >> ${le_home} renew-hook.sh
37- echo " svcadm restart ${service} " >> ${le_home} renew-hook.sh
37+ [[ ! -z ${service} ]] && \
38+ echo " svcadm restart ${service} " >> ${le_home} renew-hook.sh
3839 else
3940 # Fallback to selfsigned ssl certificates
4041 /opt/core/bin/ssl-selfsigned.sh -d ${ssl_home} -f ${filename}
@@ -43,8 +44,8 @@ ssl() {
4344}
4445
4546# Request and manage SSL certificates
46- ssl /opt/local/etc/exim/ssl submission_ssl exim
47- ssl /opt/local/etc/dovecot/ssl proxy_mbox_ssl dovecot
47+ ssl /opt/local/etc/exim/ssl submission_ssl exim svc:/pkgsrc/exim:default
48+ ssl /opt/local/etc/dovecot/ssl proxy_mbox_ssl dovecot svc:/pkgsrc/dovecot:default
4849
4950# Fix permissions
5051chgrp mail /opt/local/etc/exim/ssl/exim.*
You can’t perform that action at this time.
0 commit comments