From: Glen Huang Date: Mon, 24 Oct 2022 02:21:45 +0000 (+0800) Subject: acme: fix staging option X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=9d2d8787cafdfb49339766a00ced422fa75cb883;p=openwrt-packages.git acme: fix staging option Legacy use_staging option was not respected, and the example config still use the legacy name. Signed-off-by: Glen Huang --- diff --git a/net/acme-common/files/acme.config b/net/acme-common/files/acme.config index 12bffd60f..d72547a6e 100644 --- a/net/acme-common/files/acme.config +++ b/net/acme-common/files/acme.config @@ -5,7 +5,7 @@ config acme config cert 'example_wildcard' option enabled 0 - option use_staging 1 + option staging 1 list domains example.org list domains sub.example.org list domains *.sub.example.org @@ -17,6 +17,6 @@ config cert 'example_wildcard' config cert 'example' option enabled 0 - option use_staging 1 + option staging 1 list domains example.org list domains sub.example.org diff --git a/net/acme-common/files/acme.sh b/net/acme-common/files/acme.sh index 141a2a2cf..24601a502 100644 --- a/net/acme-common/files/acme.sh +++ b/net/acme-common/files/acme.sh @@ -36,7 +36,7 @@ load_options() { section=$1 # compatibility for old option name - config_get_bool use_staging "$section" staging + config_get_bool staging "$section" use_staging if [ -z "$staging" ]; then config_get_bool staging "$section" staging 0 fi