|
|
@ -150,16 +150,8 @@ _ISPC_rmTxt() { |
|
|
|
_debug "Record ID is not numeric." |
|
|
|
return 1 |
|
|
|
;; |
|
|
|
*) _info "Successfully retrieved Record ID" ;; |
|
|
|
esac |
|
|
|
fi |
|
|
|
done |
|
|
|
# Check if a record id was found |
|
|
|
if [ -z "${record_id}" ]; then |
|
|
|
_debug "No Record ID found for '${fulldomain}'" |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
# Delete the record |
|
|
|
*) |
|
|
|
_info "Successfully retrieved Record ID" |
|
|
|
curData="{\"session_id\":\"${sessionID}\",\"primary_id\":\"${record_id}\"}" |
|
|
|
curResult="$(_post "${curData}" "${ISPC_Api}?dns_txt_delete")" |
|
|
|
if _contains "${curResult}" '"code":"ok"'; then |
|
|
@ -169,4 +161,8 @@ _ISPC_rmTxt() { |
|
|
|
_debug "Couldn't remove ACME challenge txt record." |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
;; |
|
|
|
esac |
|
|
|
fi |
|
|
|
done |
|
|
|
} |