Correction : roundcube-chpasswd doit avoir accès à /etc/dovecot/$domain/ .
authorJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Thu, 26 Sep 2013 22:40:59 +0000 (00:40 +0200)
committerroot <root@ateliers.heureux-cyclage.org>
Thu, 26 Sep 2013 22:41:52 +0000 (00:41 +0200)
etc/sv/dovecot/remote.sh

index fe93d3c..36d975a 100644 (file)
@@ -6,8 +6,9 @@ for domain in \
         do
                "$tool"/remote/site-x509-key-decrypt "$protocol"."$domain" |
                "$tool"/remote/ssh root@"$local_fqdn" ' \
+                       sudo install -d -m 770 -o root -g php_roundcube \
+                        /etc/dovecot/'"$domain"'/
                        sudo install -d -m 770 -o root -g root \
-                        /etc/dovecot/'"$domain"'/ \
                         /etc/dovecot/'"$domain"'/'"$protocol"' \
                         /etc/dovecot/'"$domain"'/'"$protocol"'/x509 ; \
                        sudo install -m 644 -o root -g root /dev/stdin \