promjena dovecot.key -> dovecot.pem, ako postoji
authorZeljko Boros <Zeljko.Boros@carnet.hr>
Tue, 27 Apr 2021 09:56:17 +0000 (11:56 +0200)
committerZeljko Boros <Zeljko.Boros@carnet.hr>
Tue, 27 Apr 2021 09:56:17 +0000 (11:56 +0200)
debian/postinst

index c399682..5b18253 100755 (executable)
@@ -65,6 +65,10 @@ if ! grep -q ^ssl_cert /etc/dovecot/conf.d/10-ssl.conf \
   cp_check_and_sed '#ssl_key = </etc/dovecot/private/dovecot.pem' \
                   's|#ssl_key = </etc/dovecot/private/dovecot.pem|ssl_key = </etc/dovecot/private/dovecot.pem|g' \
                   /etc/dovecot/conf.d/10-ssl.conf || true
+  # negdje se pojavljuje dovecot.key
+  cp_check_and_sed 'ssl_key = </etc/dovecot/private/dovecot.key' \
+                  's|ssl_key = </etc/dovecot/private/dovecot.key|ssl_key = </etc/dovecot/private/dovecot.pem|g' \
+                  /etc/dovecot/conf.d/10-ssl.conf || true
 fi