vp-build/srcpkgs/dovecot/INSTALL
2012-01-31 15:43:27 +01:00

23 lines
628 B
Plaintext

case "${ACTION}" in
post)
if [ -f etc/ssl/private/dovecot.pem -a -f etc/ssl/certs/dovecot.pem ]; then
exit 0
fi
echo "Creating self-signed certificate..."
usr/sbin/dovecot-mkcert.sh
cat <<_EOF
==========================================================================
A self-signed certificate for SSL has been created automatically, but
this should be created again with proper settings in dovecot-openssl.cnf:
$ rm -f /etc/ssl/{certs,private}/dovecot.pem
$ [edit /etc/ssl/dovecot-openssl.cnf]
$ /usr/sbin/dovecot-mkcert.sh
==========================================================================
_EOF
;;
esac