fix: chown on ssl cert

Exec chown on /etc/letsencrypt only in case of secure installation.
This commit is contained in:
Tenebor 2023-12-21 20:51:16 +01:00 committed by GitHub
parent d210f5171a
commit 64c5ab7042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -193,10 +193,9 @@ else
done
CERT_PRIV_KEY=/etc/letsencrypt/live/${rootdomain}/privkey.pem
CERT_PUB_KEY=/etc/letsencrypt/live/${rootdomain}/fullchain.pem
sudo chown ${USER}:${USER} -R /etc/letsencrypt
fi
sudo chown ${USER}:${USER} -R /etc/letsencrypt
print_green 'Installing Nginx'
sudo mkdir -p /etc/apt/keyrings