From: Ludovic CHEVALIER Date: Fri, 13 Sep 2013 17:23:39 +0000 (+0200) Subject: Modifications : etc/sv/dovecot/local.sh X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=commitdiff_plain;h=88856ebb5bec8f4031e9fa5334087b488e9c13d7;hp=e29081c8f9a19f2e9bbef4f57376f0492746ce07 Modifications : etc/sv/dovecot/local.sh --- diff --git a/etc/sv/dovecot/local.sh b/etc/sv/dovecot/local.sh index 7d11fd2..4ca3b65 100644 --- a/etc/sv/dovecot/local.sh +++ b/etc/sv/dovecot/local.sh @@ -6,10 +6,13 @@ for domain in \ "$local_domainname" \ cyclocoop.org do - assert "sudo test -f /etc/dovecot/$domain/imap/x509/key.pem" hint - sudo install -m 400 -o root -g root \ - "$tool"/var/pub/x509/imap."$domain"/crt+crl.self-signed.pem \ - /etc/dovecot/"$domain"/imap/x509/crt+crl.self-signed.pem + for protocol in imap pop + do + assert "sudo test -f /etc/dovecot/$domain/"$protocol"/x509/key.pem" hint + sudo install -m 400 -o root -g root \ + "$tool"/var/pub/x509/"$protocol"."$domain"/crt+crl.self-signed.pem \ + /etc/dovecot/"$domain"/"$protocol"/x509/crt+crl.self-signed.pem + done done hint="run before: local/runit-configure nginx -- autoconfig"