File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ function update_cert {
198
198
[[ " $key " == " DNS_API" ]] && continue
199
199
dns_api_keys+=(" $key " )
200
200
local value=" ${acmesh_dns_config[$key]} "
201
- declare -x " $key " =" $value "
201
+ local -x " $key " =" $value "
202
202
done
203
203
204
204
echo " Info: DNS challenge using $acmesh_dns_api DNS API with the following keys: ${dns_api_keys[*]} "
@@ -420,16 +420,6 @@ function update_cert {
420
420
421
421
local acmesh_return=$?
422
422
423
- # DNS challenge: clean environment variables
424
- if [[ " $acme_challenge " == " DNS-01" ]]; then
425
- local -n acmesh_dns_config=" ACMESH_${cid} _DNS_API_CONFIG"
426
- # Loop over defined variable for acme.sh DNS api config
427
- for key in " ${! acmesh_dns_config[@]} " ; do
428
- [[ " $key " == " DNS_API" ]] && continue
429
- unset " $key "
430
- done
431
- fi
432
-
433
423
# 0 = success, 2 = RENEW_SKIP
434
424
if [[ $acmesh_return == 0 || $acmesh_return == 2 ]]; then
435
425
for domain in " ${hosts_array[@]} " ; do
You can’t perform that action at this time.
0 commit comments