Skip to content

Commit 124cb18

Browse files
committed
Fix renewing certs because of permission errors
1 parent 5ac9dc0 commit 124cb18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/internal/certificate.js

+4
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,8 @@ const internalCertificate = {
982982

983983
const cmd = certbotCommand + ' renew --force-renewal ' +
984984
'--config "' + letsencryptConfig + '" ' +
985+
'--work-dir "/tmp/letsencrypt-lib" ' +
986+
'--logs-dir "/tmp/letsencrypt-log" ' +
985987
'--cert-name "npm-' + certificate.id + '" ' +
986988
'--preferred-challenges "dns,http" ' +
987989
'--no-random-sleep-on-renew ' +
@@ -1012,6 +1014,8 @@ const internalCertificate = {
10121014

10131015
let mainCmd = certbotCommand + ' renew ' +
10141016
'--config "' + letsencryptConfig + '" ' +
1017+
'--work-dir "/tmp/letsencrypt-lib" ' +
1018+
'--logs-dir "/tmp/letsencrypt-log" ' +
10151019
'--cert-name "npm-' + certificate.id + '" ' +
10161020
'--disable-hook-validation ' +
10171021
'--no-random-sleep-on-renew ' +

0 commit comments

Comments
 (0)