projects
/
dovecot-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
izmjene za stretch
[dovecot-cn.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index
0d75081
..
dd1bf13
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-49,7
+49,7
@@
if ! grep -q ^ssl_cert /etc/dovecot/conf.d/10-ssl.conf \
if [ ! -f /etc/dovecot/dovecot.pem -a ! -f /etc/dovecot/private/dovecot.pem ]; then
echo "CN: Generating certificate and key..."
if [ ! -f /etc/dovecot/dovecot.pem -a ! -f /etc/dovecot/private/dovecot.pem ]; then
echo "CN: Generating certificate and key..."
- /usr/share/dovecot-cn/mkcert.sh 2>&1 > /dev/null
+ /usr/share/dovecot-cn/mkcert.sh || true
fi
cp_check_and_sed '#ssl_cert = </etc/dovecot/dovecot.pem' \
fi
cp_check_and_sed '#ssl_cert = </etc/dovecot/dovecot.pem' \
@@
-68,11
+68,7
@@
cp_check_and_sed '#ssl_protocols =' \
/etc/dovecot/conf.d/10-ssl.conf || true
# restart
/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#
#DEBHELPER#