17
17
if [ -n "`id -u imapd 2> /dev/null`" ]; then
22
22
if [ -z "`id -u dovecot 2> /dev/null`" ]; then
34
29
SSL_CERT=$( (grep -m 1 "ssl_cert_file" /etc/dovecot/dovecot.conf || echo '/etc/ssl/certs/dovecot.pem') | cut -d'=' -f2)
35
30
SSL_KEY=$( (grep -m 1 "ssl_key_file" /etc/dovecot/dovecot.conf || echo '/etc/ssl/private/dovecot.pem') | cut -d'=' -f2)
37
32
# Generate new certs if needed
39
34
echo "You already have ssl certs for dovecot."
41
36
echo "Creating generic self-signed certificate: $SSL_CERT"