izmjene za stretch
[dovecot-cn.git] / debian / postinst
index 2afcf7a..dd1bf13 100755 (executable)
@@ -68,11 +68,7 @@ cp_check_and_sed '#ssl_protocols =' \
                 /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#