Revert non-linode scripts since they're untested

This commit is contained in:
Jeremy Knope 2017-07-27 08:52:46 -04:00
parent 29b21b828b
commit d39649f30d
4 changed files with 6 additions and 12 deletions

View File

@ -92,8 +92,7 @@ _get_root() {
p=1 p=1
if _ad_rest GET "domain/"; then if _ad_rest GET "domain/"; then
response="$(echo "$response" | tr -d "\n" | sed 's/{/\ response="$(echo "$response" | tr -d "\n" | sed 's/{/\n&/g')"
&/g')"
while true; do while true; do
h=$(printf "%s" "$domain" | cut -d . -f $i-100) h=$(printf "%s" "$domain" | cut -d . -f $i-100)
_debug h "$h" _debug h "$h"

View File

@ -69,11 +69,9 @@ _dns_do_list_rrs() {
fi fi
_rr_list="$(echo "${response}" \ _rr_list="$(echo "${response}" \
| tr -d "\n\r\t" \ | tr -d "\n\r\t" \
| sed -e 's/<item xsi:type="ns2:Map">/\ | sed -e 's/<item xsi:type="ns2:Map">/\n/g' \
/g' \
| grep ">$(_regexcape "$fulldomain")</value>" \ | grep ">$(_regexcape "$fulldomain")</value>" \
| sed -e 's/<\/item>/\ | sed -e 's/<\/item>/\n/g' \
/g' \
| grep '>id</key><value' \ | grep '>id</key><value' \
| _egrep_o '>[0-9]{1,16}<' \ | _egrep_o '>[0-9]{1,16}<' \
| tr -d '><')" | tr -d '><')"

View File

@ -77,8 +77,7 @@ dns_freedns_add() {
| grep -i -e '</\?TABLE\|</\?TD\|</\?TR\|</\?TH' \ | grep -i -e '</\?TABLE\|</\?TD\|</\?TR\|</\?TH' \
| sed 's/^[\ \t]*//g' \ | sed 's/^[\ \t]*//g' \
| tr -d '\n' \ | tr -d '\n' \
| sed 's/<\/TR[^>]*>/\ | sed 's/<\/TR[^>]*>/\n/Ig' \
/Ig' \
| sed 's/<\/\?\(TABLE\|TR\)[^>]*>//Ig' \ | sed 's/<\/\?\(TABLE\|TR\)[^>]*>//Ig' \
| sed 's/^<T[DH][^>]*>\|<\/\?T[DH][^>]*>$//Ig' \ | sed 's/^<T[DH][^>]*>\|<\/\?T[DH][^>]*>$//Ig' \
| sed 's/<\/T[DH][^>]*><T[DH][^>]*>/,/Ig' \ | sed 's/<\/T[DH][^>]*><T[DH][^>]*>/,/Ig' \
@ -217,8 +216,7 @@ dns_freedns_rm() {
| grep -i -e '</\?TABLE\|</\?TD\|</\?TR\|</\?TH' \ | grep -i -e '</\?TABLE\|</\?TD\|</\?TR\|</\?TH' \
| sed 's/^[\ \t]*//g' \ | sed 's/^[\ \t]*//g' \
| tr -d '\n' \ | tr -d '\n' \
| sed 's/<\/TR[^>]*>/\ | sed 's/<\/TR[^>]*>/\n/Ig' \
/Ig' \
| sed 's/<\/\?\(TABLE\|TR\)[^>]*>//Ig' \ | sed 's/<\/\?\(TABLE\|TR\)[^>]*>//Ig' \
| sed 's/^<T[DH][^>]*>\|<\/\?T[DH][^>]*>$//Ig' \ | sed 's/^<T[DH][^>]*>\|<\/\?T[DH][^>]*>$//Ig' \
| sed 's/<\/T[DH][^>]*><T[DH][^>]*>/,/Ig' \ | sed 's/<\/T[DH][^>]*><T[DH][^>]*>/,/Ig' \

View File

@ -93,8 +93,7 @@ _get_root() {
p=1 p=1
if _vscale_rest GET "domains/"; then if _vscale_rest GET "domains/"; then
response="$(echo "$response" | tr -d "\n" | sed 's/{/\ response="$(echo "$response" | tr -d "\n" | sed 's/{/\n&/g')"
&/g')"
while true; do while true; do
h=$(printf "%s" "$domain" | cut -d . -f $i-100) h=$(printf "%s" "$domain" | cut -d . -f $i-100)
_debug h "$h" _debug h "$h"