fix format
This commit is contained in:
parent
05a26489b7
commit
8b06343653
@ -69,7 +69,6 @@ dns_dnsever_rm() {
|
||||
# _sub_domain=_acme-challenge.www
|
||||
# _domain=domain.com
|
||||
|
||||
|
||||
_get_root() {
|
||||
domain=$1
|
||||
i=2
|
||||
@ -86,7 +85,6 @@ _get_root() {
|
||||
_debug2 "h" "$h"
|
||||
_debug2 "domains" "$domains"
|
||||
|
||||
|
||||
if _contains "$domains" "$h"; then
|
||||
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
|
||||
_domain="$h"
|
||||
@ -98,7 +96,6 @@ _get_root() {
|
||||
return 1
|
||||
}
|
||||
|
||||
|
||||
_get_check_count() {
|
||||
domain=$1
|
||||
_err "res" "$response"
|
||||
@ -132,7 +129,6 @@ dnsever_domain_txt() {
|
||||
# newhref=$(echo "$response" | sed -E "s/.*\'(.*)\'<.*/\1/")
|
||||
newhref=$(printf "%s\n" "$response" | _egrep_o "'.+'" | cut -d\' -f2)
|
||||
|
||||
|
||||
response=$(_post "" "$newhref")
|
||||
result=$?
|
||||
if [ $result != 0 ] || [ -z "$response" ]; then
|
||||
@ -149,7 +145,6 @@ dnsever_domain_txt() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
||||
response=$(_post "" "https://kr.dnsever.com/start.html")
|
||||
result=$?
|
||||
if [ $result != 0 ] || [ -z "$response" ]; then
|
||||
@ -160,7 +155,6 @@ dnsever_domain_txt() {
|
||||
skey=$(printf "%s\n" "$response" | _egrep_o "name=\"skey\" value=\".+\"" | cut -f3 -d= | tr -d \")
|
||||
_debug skey "$skey"
|
||||
|
||||
|
||||
if [ -z "$skey" ]; then
|
||||
_err "dnsever_txt:$action ERROR login failed with login_id=$login_id login_password=$login_password"
|
||||
response=$(_post "skey=$skey" "https://kr.dnsever.com/logout.php")
|
||||
@ -173,16 +167,10 @@ dnsever_domain_txt() {
|
||||
_debug2 "subdomain" "$_sub_domain"
|
||||
_debug2 "txt" "$domain_txt"
|
||||
|
||||
|
||||
|
||||
if [ "$action" = "add" ]; then
|
||||
##https://kr.dnsever.com/start.html?user_domain=flywithu.com&selected_menu=edittxt&skey=flywithu:f80f523d2254f1e2c56462ace327f256
|
||||
# subname=$(echo "$domain_name" | sed "s/\.$user_domain\$//")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
response=$(_post "skey=$skey&user_domain=$_domain&selected_menu=edittxt&command=add_txt&subname=$_sub_domain&new_txt=$domain_txt" "https://kr.dnsever.com/start.html")
|
||||
|
||||
result=$?
|
||||
@ -197,7 +185,6 @@ dnsever_domain_txt() {
|
||||
# _debug2 "response" "$response" |cut -d\" -f1
|
||||
seq_1=$(printf "%s\n" "$response" | _egrep_o "name=\"seq_1\" value=\".+\"" | cut -f3 -d= | tr -d \")
|
||||
|
||||
|
||||
response=$(_post "skey=$skey&user_domain=$_domain&selected_menu=edittxt&command=delete_txt&domain_for_txt_1=$domain_name&old_txt_1=$domain_txt&txt_1=$domain_txt&check[]=1&seq_1=$seq_1&subname=&new_txt=" "https://kr.dnsever.com/start.html")
|
||||
result=$?
|
||||
if [ $result != 0 ] || [ -z "$response" ]; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user