+dovecot-cn (1:2.2.27~cn0) stable; urgency=medium
+
+  * Prva verzija za stretch
+
+ -- Ivan Rako <Ivan.Rako@CARNet.hr>  Sun, 08 Jul 2018 00:36:31 +0200
+
 dovecot-cn (1:2.2.13~cn1) stable; urgency=medium
 
   * Postavlja ssl = yes u 10-auth.conf
 
 Section: net
 Priority: optional
 Maintainer: Ivan Rako <Ivan.Rako@CARNet.hr>
-Build-Depends: debhelper (>= 8)
-Standards-Version: 3.9.6
+Build-Depends: debhelper (>= 9)
+Standards-Version: 3.9.8
 
 Package: dovecot-cn
 Architecture: all
-Depends: ${misc:Depends}, dovecot-core (>= 1:2.2.13), dovecot-imapd (>= 1:2.2.13), dovecot-pop3d (>= 1:2.2.13), carnet-tools-cn (>= 2)
+Depends: ${misc:Depends}, dovecot-core (>= 1:2.2.27), dovecot-imapd (>= 1:2.2.27), dovecot-pop3d (>= 1:2.2.27), carnet-tools-cn (>= 3)
 Description: secure mail server that supports mbox and maildir mailboxes
  Dovecot is a mail server whose major goals are security and extreme
  reliability. It tries very hard to handle all error conditions and verify
 
                 /etc/dovecot/conf.d/10-ssl.conf || true
 
 # restart 
-if [ -x /usr/sbin/invoke-rc.d ]; then
-  [ -x /etc/init.d/dovecot ] && invoke-rc.d dovecot restart
-else
-  [ -x /etc/init.d/dovecot ] && /etc/init.d/dovecot restart
-fi
+service dovecot restart || true
 
 #DEBHELPER#