From 8619bfa00c834ab55e4a7fccbb31918627ef7d1c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 18 Mar 2017 12:52:11 +0000 Subject: [PATCH] mailpile cert permissions --- src/freedombone-app-mailpile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-mailpile b/src/freedombone-app-mailpile index b5aa064d..f6d2cfb7 100755 --- a/src/freedombone-app-mailpile +++ b/src/freedombone-app-mailpile @@ -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