local ret
local domain_dir
local acme_server
+ local days
config_get_bool enabled "$section" enabled 0
config_get_bool use_staging "$section" use_staging
config_get user_setup "$section" user_setup
config_get user_cleanup "$section" user_cleanup
config_get acme_server "$section" acme_server
+ config_get days "$section" days
UPDATE_NGINX=$update_nginx
UPDATE_UHTTPD=$update_uhttpd
acme_args="$acme_args --server $acme_server"
fi
+ if [ -n "$days" ]; then
+ log "Renewing after $days days"
+ acme_args="$acme_args --days $days"
+ fi
+
if [ -n "$dns" ]; then
log "Using dns mode"
acme_args="$acme_args --dns $dns"