fix postinst
[dovecot-cn.git] / debian / postinst
index 18fd1cf..a26e2a9 100755 (executable)
@@ -74,7 +74,7 @@ fi
 ### buster ima ssl_min_protocol umjesto ssl_protocols
 # ne radimo ništa ako već postoji ^ssl_min_protocol = TLS*, možda je sistemac smanjivao level TLS-a
 
-if ! grep -q "^ssl_min_protocol = TLS"; then
+if ! grep -q "^ssl_min_protocol = TLS" /etc/dovecot/conf.d/10-ssl.conf; then
        # postavlja minimalni TLS protokol i mijenja ime varijable
        cp_check_and_sed '#ssl_protocols =' \
                         's/^#ssl_protocols.*/ssl_min_protocol = TLSv1.2/g' \
@@ -97,7 +97,6 @@ if ! grep -q "^ssl_min_protocol = TLS"; then
 fi
 
 # maknuti kludge kreiran u carnet-upgrade
-echo "CN: Prebacujem stare konfiguracije za dovecot 95-cn#-upgrade.conf u /var/backups..."
 test -f /etc/dovecot/conf.d/95-cn6-upgrade.conf && mv /etc/dovecot/conf.d/95-cn6-upgrade.conf /var/backups || true
 test -f /etc/dovecot/conf.d/95-cn7-upgrade.conf && mv /etc/dovecot/conf.d/95-cn7-upgrade.conf /var/backups || true
 test -f /etc/dovecot/conf.d/95-cn8-upgrade.conf && mv /etc/dovecot/conf.d/95-cn8-upgrade.conf /var/backups || true