From 64c5ab7042bc12f3f7e02a1fa52f1a1248aa80c0 Mon Sep 17 00:00:00 2001 From: Tenebor <87881021+Tenebor@users.noreply.github.com> Date: Thu, 21 Dec 2023 20:51:16 +0100 Subject: [PATCH] fix: chown on ssl cert Exec chown on /etc/letsencrypt only in case of secure installation. --- install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 277d9f05..16095a02 100644 --- a/install.sh +++ b/install.sh @@ -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