From fa2445fe821a3c9b7b96a6a5940d6d0a840c1ff7 Mon Sep 17 00:00:00 2001 From: Miraty Date: Sat, 6 May 2023 19:59:38 +0200 Subject: [PATCH] Set permissions for Certbot in /etc/letsencrypt --- install/certbot.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install/certbot.sh b/install/certbot.sh index da23187..cdf594f 100644 --- a/install/certbot.sh +++ b/install/certbot.sh @@ -6,3 +6,8 @@ cp /install/certbot.ini /etc/letsencrypt/cli.ini cp /install/certbot-deploy-hook.sh /root/certbot-deploy-hook.sh chmod +x /root/certbot-deploy-hook.sh + +mkdir -p /etc/letsencrypt/archive/ /etc/letsencrypt/live/ +chmod 710 /etc/letsencrypt/archive/ /etc/letsencrypt/live/ +chown root:nginx /etc/letsencrypt/archive/ /etc/letsencrypt/live/ +#/root/certbot-deploy-hook.sh