mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-15 17:32:43 +00:00
Update dns_wts.sh
This commit is contained in:
parent
5f0841a643
commit
f8eccefad4
@ -54,7 +54,9 @@ dns_wts_add() {
|
|||||||
# TMP_RECORD_FILE="/tmp/acme-wts/${fulldomain//\*/_}.record_id"
|
# TMP_RECORD_FILE="/tmp/acme-wts/${fulldomain//\*/_}.record_id"
|
||||||
# mkdir -p /tmp/acme-wts
|
# mkdir -p /tmp/acme-wts
|
||||||
# echo "$TMP_RecordID" > "$TMP_RECORD_FILE"
|
# echo "$TMP_RecordID" > "$TMP_RECORD_FILE"
|
||||||
_saveaccountconf_mutable "_WTS_RecordID_$fulldomain" "$TMP_RecordID"
|
clean_domain="${fulldomain//\*/_wildcard_}"
|
||||||
|
_saveaccountconf_mutable "_WTS_RecordID_$clean_domain" "$TMP_RecordID"
|
||||||
|
|
||||||
_info "Saved TMP_RecordID=$TMP_RecordID"
|
_info "Saved TMP_RecordID=$TMP_RecordID"
|
||||||
|
|
||||||
|
|
||||||
@ -106,7 +108,8 @@ dns_wts_rm() {
|
|||||||
# return 1
|
# return 1
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
TMP_RecordID="$(_readaccountconf_mutable "_WTS_RecordID_$fulldomain")"
|
clean_domain="${fulldomain//\*/_wildcard_}"
|
||||||
|
TMP_RecordID="$(_readaccountconf_mutable "_WTS_RecordID_$clean_domain")"
|
||||||
|
|
||||||
if [ -z "$TMP_RecordID" ]; then
|
if [ -z "$TMP_RecordID" ]; then
|
||||||
_err "TMP_RecordID not found. Cannot delete record."
|
_err "TMP_RecordID not found. Cannot delete record."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user