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
b45a44e4
Commit
b45a44e4
authored
Sep 12, 2021
by
Christophe B Billheimer
Browse files
fix formatting
parent
a196958b
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_1984hosting.sh
View file @
b45a44e4
...
@@ -93,12 +93,10 @@ dns_1984hosting_rm() {
...
@@ -93,12 +93,10 @@ dns_1984hosting_rm() {
fi
fi
_debug _sub_domain
"
$_sub_domain
"
_debug _sub_domain
"
$_sub_domain
"
_debug _domain
"
$_domain
"
_debug _domain
"
$_domain
"
_debug
"Delete
$fulldomain
TXT record"
_debug
"Delete
$fulldomain
TXT record"
url
=
"https://management.1984hosting.com/domains"
url
=
"https://management.1984hosting.com/domains"
if
!
_get_zone_id
"
$url
"
"
$_domain
"
;
then
if
!
_get_zone_id
"
$_domain
"
;
then
_err
"invalid zone"
"
$_domain
"
_err
"invalid zone"
"
$_domain
"
return
1
return
1
fi
fi
...
@@ -218,11 +216,11 @@ _get_root() {
...
@@ -218,11 +216,11 @@ _get_root() {
return
1
return
1
}
}
#usage: _get_zone_id domain.com
#usage: _get_zone_id
url
domain.com
#returns zone id for domain.com
#returns zone id for domain.com
_get_zone_id
()
{
_get_zone_id
()
{
url
=
"https://management.1984hosting.com/domains"
url
=
$1
domain
=
$
1
domain
=
$
2
_htmlget
"
$url
"
"
$domain
"
_htmlget
"
$url
"
"
$domain
"
_debug2 _response
"
$_response
"
_debug2 _response
"
$_response
"
_zone_id
=
"
$(
echo
"
$_response
"
| _egrep_o
'zone\/[0-9]+'
)
"
_zone_id
=
"
$(
echo
"
$_response
"
| _egrep_o
'zone\/[0-9]+'
)
"
...
...
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