From: Zeljko Boros Date: Sun, 23 May 2021 18:53:30 +0000 (+0200) Subject: velike izmjene u postinstu i mkcert.sh zbog TLS putanja iz bustera X-Git-Tag: debian/1%2.3.4.1+cn10u3^0 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=38d9a6700d7248f523c8c9d056f1470f99eb7eef;p=dovecot-cn.git velike izmjene u postinstu i mkcert.sh zbog TLS putanja iz bustera --- diff --git a/debian/postinst b/debian/postinst index e02759c..b9202d1 100755 --- a/debian/postinst +++ b/debian/postinst @@ -8,6 +8,40 @@ set -e # Load CARNet Tools . /usr/share/carnet-tools/functions.sh + +function move_certs() { + if [ -f /etc/dovecot/private/dovecot.pem -a ! -f /etc/dovecot/private/dovecot.key ]; then + mv -f /etc/dovecot/private/dovecot.pem /etc/dovecot/private/dovecot.key || true + fi + + if [ -f /etc/dovecot/dovecot.pem ]; then + mv -f /etc/dovecot/dovecot.pem /etc/dovecot/private/dovecot.pem || true + fi +} + +function put_new_certs() { +# postavlja cert i key na nove putanje iz bustera + cp_check_and_sed '#ssl_key =