Update dns_wts.sh

This commit is contained in:
LukasWRN 2025-05-26 19:45:58 +02:00 committed by GitHub
parent 141287fe21
commit e016f5d037
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ dns_wts_add() {
# mkdir -p /tmp/acme-wts
# echo "$TMP_RecordID" > "$TMP_RECORD_FILE"
clean_domain="${fulldomain//\*/_wildcard_}"
_saveaccountconf_mutable "_WTS_RecordID_$clean_domain" "$TMP_RecordID"
_saveaccountconf_mutable "_WTS_RecordID" "$TMP_RecordID"
_info "Saved TMP_RecordID=$TMP_RecordID"
@ -109,7 +109,7 @@ dns_wts_rm() {
# fi
clean_domain="${fulldomain//\*/_wildcard_}"
TMP_RecordID="$(_readaccountconf_mutable "_WTS_RecordID_$clean_domain")"
TMP_RecordID="$(_readaccountconf_mutable "_WTS_RecordID")"
if [ -z "$TMP_RecordID" ]; then
_err "TMP_RecordID not found. Cannot delete record."