linux-insideDE
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
26 additions and
26 deletions
-
dnsapi/dns_netcup.sh
|
@ -23,8 +23,8 @@ dns_netcup_add() { |
|
|
exit=$(_math "$exit" + 1) |
|
|
exit=$(_math "$exit" + 1) |
|
|
i=$exit |
|
|
i=$exit |
|
|
|
|
|
|
|
|
while [ "$exit" -gt 0 ] |
|
|
|
|
|
do |
|
|
|
|
|
|
|
|
while |
|
|
|
|
|
[ "$exit" -gt 0 ]; do |
|
|
tmp=$(echo "$fulldomain" | cut -d'.' -f"$exit") |
|
|
tmp=$(echo "$fulldomain" | cut -d'.' -f"$exit") |
|
|
if [ "$(_math "$i" - "$exit")" -eq 0 ]; then |
|
|
if [ "$(_math "$i" - "$exit")" -eq 0 ]; then |
|
|
domain="$tmp" |
|
|
domain="$tmp" |
|
@ -39,7 +39,7 @@ dns_netcup_add() { |
|
|
_err "$msg" |
|
|
_err "$msg" |
|
|
return 1 |
|
|
return 1 |
|
|
else |
|
|
else |
|
|
break; |
|
|
|
|
|
|
|
|
break |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
@ -59,8 +59,8 @@ dns_netcup_rm() { |
|
|
i=$exit |
|
|
i=$exit |
|
|
rec="" |
|
|
rec="" |
|
|
|
|
|
|
|
|
while [ "$exit" -gt 0 ] |
|
|
|
|
|
do |
|
|
|
|
|
|
|
|
while |
|
|
|
|
|
[ "$exit" -gt 0 ]; do |
|
|
tmp=$(echo "$fulldomain" | cut -d'.' -f"$exit") |
|
|
tmp=$(echo "$fulldomain" | cut -d'.' -f"$exit") |
|
|
if [ "$(_math "$i" - "$exit")" -eq 0 ]; then |
|
|
if [ "$(_math "$i" - "$exit")" -eq 0 ]; then |
|
|
domain="$tmp" |
|
|
domain="$tmp" |
|
@ -76,7 +76,7 @@ dns_netcup_rm() { |
|
|
_err "$msg" |
|
|
_err "$msg" |
|
|
return 1 |
|
|
return 1 |
|
|
else |
|
|
else |
|
|
break; |
|
|
|
|
|
|
|
|
break |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
@ -87,8 +87,8 @@ dns_netcup_rm() { |
|
|
idv=0001 |
|
|
idv=0001 |
|
|
ids=0000000000 |
|
|
ids=0000000000 |
|
|
i=1 |
|
|
i=1 |
|
|
while [ "$i" -ne 0 ]; |
|
|
|
|
|
do |
|
|
|
|
|
|
|
|
while |
|
|
|
|
|
[ "$i" -ne 0 ]; do |
|
|
specrec=$(_getfield "$rec" "$i" ";") |
|
|
specrec=$(_getfield "$rec" "$i" ";") |
|
|
idv="$ida" |
|
|
idv="$ida" |
|
|
ida=$(_getfield "$specrec" "1" "," | sed 's/\"id\":\"//g' | sed 's/\"//g') |
|
|
ida=$(_getfield "$specrec" "1" "," | sed 's/\"id\":\"//g' | sed 's/\"//g') |
|
|