mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-10 16:44:11 +00:00
added dns record already exists handling
This commit is contained in:
parent
b429d6c21c
commit
92b95020d5
@ -101,7 +101,12 @@ function add_txt_record() {
|
|||||||
plesk_api "$request"
|
plesk_api "$request"
|
||||||
|
|
||||||
if ! _contains "${response}" '<status>ok</status>'; then
|
if ! _contains "${response}" '<status>ok</status>'; then
|
||||||
|
# check if record already exists
|
||||||
|
if ! _contains "${response}" '<errcode>1007</errcode>'; then
|
||||||
return 1
|
return 1
|
||||||
|
else
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user