Correction : vm_hosted : rule_dovecot_configure : sudo .
authorJulien Moutinho <julm+burette@autogeree.net>
Thu, 14 Mar 2013 21:07:28 +0000 (22:07 +0100)
committerJulien Moutinho <julm+burette@autogeree.net>
Tue, 19 Mar 2013 09:42:04 +0000 (10:42 +0100)
vm_hosted

index a793041..6e43c25 100755 (executable)
--- a/vm_hosted
+++ b/vm_hosted
@@ -291,7 +291,7 @@ rule_boot_configure () {
 rule_dovecot_configure () {
        rule apt_get_install dovecot-imapd dovecot-managesieved dovecot-sieve
        local hint="run vm_remote dovecot_key_send before"
-       assert "test -f /etc/dovecot/$vm_domainname/imap/x509/key.pem" hint
+       assert "sudo test -f /etc/dovecot/\"$vm_domainname\"/imap/x509/key.pem" hint
        sudo install -m 400 -o root -g root \
             "$tool"/var/pub/x509/$vm_domainname/imap/crt+crl.self-signed.pem \
         /etc/dovecot/$vm_domainname/imap/x509/crt+crl.self-signed.pem