From 53bb2e284f25a6473c04ac801551d36b40ce66bd Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Sat, 18 Feb 2023 18:42:59 -0600 Subject: [PATCH] Add descriptive comments to set_ini_value --- root/etc/s6-overlay/s6-rc.d/init-certbot-config/run | 4 ++++ 1 file changed, 4 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 fe19a7d..a0b8b3d 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,10 @@ if [[ "${VALIDATION}" = "dns" ]] && [[ ! "${DNSPLUGIN}" =~ ^(acmedns|aliyun|azur sleep infinity fi +# 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 +# - if the name is found in the file but commented out, uncomment the line and replace the value # call set_ini_value with parameters: $1=name $2=value $3=file function set_ini_value() { name=${1//\//\\/}