Legacy use_staging option was not respected, and the example config
still use the legacy name.
Signed-off-by: Glen Huang <i@glenhuang.com>
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
config cert 'example'
option enabled 0
- option use_staging 1
+ option staging 1
list domains example.org
list domains sub.example.org
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