From 0b738d9ee00c0b78643fddeeafbe169b002df22c Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Mon, 31 Jul 2023 15:13:43 -0500 Subject: [PATCH] set owner of certbot folders to abc Signed-off-by: Eric Nemchik --- root/etc/s6-overlay/s6-rc.d/init-certbot-config/run | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/root/etc/s6-overlay/s6-rc.d/init-certbot-config/run b/root/etc/s6-overlay/s6-rc.d/init-certbot-config/run index e872e8d..b1c6b5c 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-certbot-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-certbot-config/run @@ -29,6 +29,12 @@ if [[ "${VALIDATION}" = "dns" ]] && [[ ! "${DNSPLUGIN}" =~ ^(acmedns|aliyun|azur sleep infinity fi +# set owner of certbot's CONFIG_DIR, WORK_DIR, and LOGS_DIR to abc +lsiown -R abc \ + /etc/letsencrypt \ + /var/lib/letsencrypt \ + /var/log/letsencrypt + # set_ini_value logic: # - if the name is not found in the file, append the name=value to the end of the file # - if the name is found in the file, replace the value