fix postinst, control
authorZeljko Boros <Zeljko.Boros@carnet.hr>
Wed, 28 Apr 2021 12:02:02 +0000 (14:02 +0200)
committerZeljko Boros <Zeljko.Boros@carnet.hr>
Wed, 28 Apr 2021 12:02:02 +0000 (14:02 +0200)
debian/control
debian/postinst

index b2a5a0a..b4607f4 100644 (file)
@@ -1,8 +1,8 @@
 Source: dovecot-cn
 Section: net
 Priority: optional
-Maintainer: Ivan Rako <Ivan.Rako@CARNET.hr>
-Uploaders: Zeljko Boros <Zeljko.Boros@CARNET.hr>
+Maintainer: Ivan Rako <Ivan.Rako@carnet.hr>
+Uploaders: Zeljko Boros <Zeljko.Boros@carnet.hr>
 Build-Depends: debhelper (>= 10)
 Standards-Version: 3.9.8
 
index 18fd1cf..911a04a 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' \