mailpile cert permissions
This commit is contained in:
parent
0913425df4
commit
8619bfa00c
|
@ -378,11 +378,11 @@ function install_mailpile {
|
||||||
mv /etc/ssl/certs/${MAILPILE_DOMAIN_NAME}.crt /etc/ssl/certs/${MAILPILE_DOMAIN_NAME}.pem
|
mv /etc/ssl/certs/${MAILPILE_DOMAIN_NAME}.crt /etc/ssl/certs/${MAILPILE_DOMAIN_NAME}.pem
|
||||||
fi
|
fi
|
||||||
if [ -f /etc/ssl/certs/${MAILPILE_DOMAIN_NAME}.pem ]; then
|
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}
|
sed -i "s|.crt|.pem|g" /etc/nginx/sites-available/${MAILPILE_DOMAIN_NAME}
|
||||||
fi
|
fi
|
||||||
if [ -f /etc/ssl/private/${MAILPILE_DOMAIN_NAME}.key ]; then
|
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
|
fi
|
||||||
|
|
||||||
function_check nginx_ensite
|
function_check nginx_ensite
|
||||||
|
|
Loading…
Reference in New Issue