Check for fullchain
This commit is contained in:
parent
88548b1a56
commit
e05dfbb27c
|
@ -843,7 +843,7 @@ function update_default_domain {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${#DEFAULT_DOMAIN_NAME} -gt 0 ]; then
|
if [ ${#DEFAULT_DOMAIN_NAME} -gt 0 ]; then
|
||||||
if [ -f /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem ]; then
|
if [ -f /etc/letsencrypt/live/${DEFAULT_DOMAIN_NAME}/fullchain.pem ]; then
|
||||||
if [ -d /etc/dovecot ]; then
|
if [ -d /etc/dovecot ]; then
|
||||||
if ! grep -q "ssl_cert = </etc/letsencrypt/live/${DEFAULT_DOMAIN_NAME}/fullchain.pem" /etc/dovecot/conf.d/10-ssl.conf; then
|
if ! grep -q "ssl_cert = </etc/letsencrypt/live/${DEFAULT_DOMAIN_NAME}/fullchain.pem" /etc/dovecot/conf.d/10-ssl.conf; then
|
||||||
sed -i "s|#ssl_cert =.*|ssl_cert = </etc/letsencrypt/live/${DEFAULT_DOMAIN_NAME}/fullchain.pem|g" /etc/dovecot/conf.d/10-ssl.conf
|
sed -i "s|#ssl_cert =.*|ssl_cert = </etc/letsencrypt/live/${DEFAULT_DOMAIN_NAME}/fullchain.pem|g" /etc/dovecot/conf.d/10-ssl.conf
|
||||||
|
|
Loading…
Reference in New Issue