X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fsv%2Fdovecot%2Flocal.sh;h=df5aa38f2396a949a1d33a3ae9d10ee9330d9a4a;hp=9b0f37b0c058239bece0820c7ddde2fa3779493d;hb=a11ad78672a096632b15a660509d7dd5f7c5eae5;hpb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583 diff --git a/etc/sv/dovecot/local.sh b/etc/sv/dovecot/local.sh index 9b0f37b..df5aa38 100644 --- a/etc/sv/dovecot/local.sh +++ b/etc/sv/dovecot/local.sh @@ -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 \