mirror of
https://github.com/openwrt/packages.git
synced 2026-12-05 13:15:30 +04:00
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 <i@glenhuang.com>
This commit is contained in:
1 parent
7f04710579
commit
9d2d8787ca
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user