From: Julien Moutinho Date: Thu, 14 Mar 2013 21:07:28 +0000 (+0100) Subject: Correction : vm_hosted : rule_dovecot_configure : sudo . X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=commitdiff_plain;h=dac7ac4e7dd63c381c6167f8ab27663ca9629395 Correction : vm_hosted : rule_dovecot_configure : sudo . --- diff --git a/vm_hosted b/vm_hosted index a793041..6e43c25 100755 --- 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