|
@ -5,7 +5,6 @@ |
|
|
# export ONECOM_User="username" |
|
|
# export ONECOM_User="username" |
|
|
# export ONECOM_Password="password" |
|
|
# export ONECOM_Password="password" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dns_one_add() { |
|
|
dns_one_add() { |
|
|
fulldomain=$1 |
|
|
fulldomain=$1 |
|
|
txtvalue=$2 |
|
|
txtvalue=$2 |
|
@ -24,11 +23,9 @@ dns_one_add() { |
|
|
subdomain="${_sub_domain}" |
|
|
subdomain="${_sub_domain}" |
|
|
maindomain=${_domain} |
|
|
maindomain=${_domain} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_debug subdomain "$subdomain" |
|
|
_debug subdomain "$subdomain" |
|
|
_debug maindomain "$maindomain" |
|
|
_debug maindomain "$maindomain" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Check if the TXT exists |
|
|
#Check if the TXT exists |
|
|
_dns_one_getrecord "TXT" "$subdomain" "$txtvalue" |
|
|
_dns_one_getrecord "TXT" "$subdomain" "$txtvalue" |
|
|
if [ -n "$id" ]; then |
|
|
if [ -n "$id" ]; then |
|
|