mailpile cert permissions

This commit is contained in:
Bob Mottram 2017-03-18 12:52:11 +00:00
parent 0913425df4
commit 8619bfa00c
1 changed files with 2 additions and 2 deletions

View File

@ -378,11 +378,11 @@ function install_mailpile {
mv /etc/ssl/certs/${MAILPILE_DOMAIN_NAME}.crt /etc/ssl/certs/${MAILPILE_DOMAIN_NAME}.pem
fi
if [ -f /etc/ssl/certs/${MAILPILE_DOMAIN_NAME}.pem ]; then
chown mailpile: /etc/ssl/certs/${MAILPILE_DOMAIN_NAME}.pem
chown root:root /etc/ssl/certs/${MAILPILE_DOMAIN_NAME}.pem
sed -i "s|.crt|.pem|g" /etc/nginx/sites-available/${MAILPILE_DOMAIN_NAME}
fi
if [ -f /etc/ssl/private/${MAILPILE_DOMAIN_NAME}.key ]; then
chown mailpile: /etc/ssl/private/${MAILPILE_DOMAIN_NAME}.key
chown root:root /etc/ssl/private/${MAILPILE_DOMAIN_NAME}.key
fi
function_check nginx_ensite