From 124cb18e17307deb96263421f61efbe79605f22d Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Wed, 22 Mar 2023 13:40:36 +1000 Subject: [PATCH] Fix renewing certs because of permission errors --- backend/internal/certificate.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/internal/certificate.js b/backend/internal/certificate.js index 9b715606..c93e2578 100644 --- a/backend/internal/certificate.js +++ b/backend/internal/certificate.js @@ -982,6 +982,8 @@ const internalCertificate = { const cmd = certbotCommand + ' renew --force-renewal ' + '--config "' + letsencryptConfig + '" ' + + '--work-dir "/tmp/letsencrypt-lib" ' + + '--logs-dir "/tmp/letsencrypt-log" ' + '--cert-name "npm-' + certificate.id + '" ' + '--preferred-challenges "dns,http" ' + '--no-random-sleep-on-renew ' + @@ -1012,6 +1014,8 @@ const internalCertificate = { let mainCmd = certbotCommand + ' renew ' + '--config "' + letsencryptConfig + '" ' + + '--work-dir "/tmp/letsencrypt-lib" ' + + '--logs-dir "/tmp/letsencrypt-log" ' + '--cert-name "npm-' + certificate.id + '" ' + '--disable-hook-validation ' + '--no-random-sleep-on-renew ' +