Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
d39649f3
Commit
d39649f3
authored
Jul 27, 2017
by
Jeremy Knope
Browse files
Revert non-linode scripts since they're untested
parent
29b21b82
Changes
4
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_ad.sh
View file @
d39649f3
...
...
@@ -92,8 +92,7 @@ _get_root() {
p
=
1
if
_ad_rest GET
"domain/"
;
then
response
=
"
$(
echo
"
$response
"
|
tr
-d
"
\n
"
|
sed
's/{/\
&/g'
)
"
response
=
"
$(
echo
"
$response
"
|
tr
-d
"
\n
"
|
sed
's/{/\n&/g'
)
"
while
true
;
do
h
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
$i
-100
)
_debug h
"
$h
"
...
...
dnsapi/dns_do.sh
View file @
d39649f3
...
...
@@ -69,11 +69,9 @@ _dns_do_list_rrs() {
fi
_rr_list
=
"
$(
echo
"
${
response
}
"
\
|
tr
-d
"
\n\r\t
"
\
|
sed
-e
's/<item xsi:type="ns2:Map">/\
/g'
\
|
sed
-e
's/<item xsi:type="ns2:Map">/\n/g'
\
|
grep
">
$(
_regexcape
"
$fulldomain
"
)
</value>"
\
|
sed
-e
's/<\/item>/\
/g'
\
|
sed
-e
's/<\/item>/\n/g'
\
|
grep
'>id</key><value'
\
| _egrep_o
'>[0-9]{1,16}<'
\
|
tr
-d
'><'
)
"
...
...
dnsapi/dns_freedns.sh
View file @
d39649f3
...
...
@@ -77,8 +77,7 @@ dns_freedns_add() {
|
grep
-i
-e
'</\?TABLE\|</\?TD\|</\?TR\|</\?TH'
\
|
sed
's/^[\ \t]*//g'
\
|
tr
-d
'\n'
\
|
sed
's/<\/TR[^>]*>/\
/Ig'
\
|
sed
's/<\/TR[^>]*>/\n/Ig'
\
|
sed
's/<\/\?\(TABLE\|TR\)[^>]*>//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'
\
|
sed
's/^[\ \t]*//g'
\
|
tr
-d
'\n'
\
|
sed
's/<\/TR[^>]*>/\
/Ig'
\
|
sed
's/<\/TR[^>]*>/\n/Ig'
\
|
sed
's/<\/\?\(TABLE\|TR\)[^>]*>//Ig'
\
|
sed
's/^<T[DH][^>]*>\|<\/\?T[DH][^>]*>$//Ig'
\
|
sed
's/<\/T[DH][^>]*><T[DH][^>]*>/,/Ig'
\
...
...
dnsapi/dns_vscale.sh
View file @
d39649f3
...
...
@@ -93,8 +93,7 @@ _get_root() {
p
=
1
if
_vscale_rest GET
"domains/"
;
then
response
=
"
$(
echo
"
$response
"
|
tr
-d
"
\n
"
|
sed
's/{/\
&/g'
)
"
response
=
"
$(
echo
"
$response
"
|
tr
-d
"
\n
"
|
sed
's/{/\n&/g'
)
"
while
true
;
do
h
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
$i
-100
)
_debug h
"
$h
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment