Correction : {host,local,remote}/ : duplicity + MySQL.
[lhc/ateliers.git] / etc / sv / dovecot / local.sh
index 9b0f37b..df5aa38 100644 (file)
@@ -1,8 +1,8 @@
 "$tool"/local/apt-get-install dovecot-imapd dovecot-managesieved dovecot-sieve
 "$tool"/local/insserv-remove  dovecot
 
-sudo test -f /etc/dovecot/\"$local_domainname\"/imap/x509/key.pem ||
-printf '%s\n' "$(tput rev)run before: remote/runit-configure dovecot$(tput sgr0)" && exit 1
+hint="run before: remote/runit-configure $sv"
+assert 'sudo test -f /etc/dovecot/$local_domainname/imap/x509/key.pem' hint
 
 sudo install -m 400 -o root -g root \
  "$tool"/var/pub/x509/imap."$local_domainname"/crt+crl.self-signed.pem \