X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=0b0086bb218b84c3ead90049eadc076f26446d0c;hb=refs%2Fheads%2Fmaster;hp=911a04ab101f8ceb552ee7f999b1a3278a6151a2;hpb=5ec07b4e41e94474b7eb5294462d778533aef8e6;p=dovecot-cn.git diff --git a/debian/postinst b/debian/postinst index 911a04a..0b0086b 100755 --- a/debian/postinst +++ b/debian/postinst @@ -8,6 +8,40 @@ set -e # Load CARNet Tools . /usr/share/carnet-tools/functions.sh + +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 +} + +put_new_certs() { +# postavlja cert i key na nove putanje iz bustera + cp_check_and_sed '#ssl_key =