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
aa05a1e8
Commit
aa05a1e8
authored
Sep 12, 2021
by
Christophe B Billheimer
Browse files
make sure _url gets set where it is needed
parent
384bc62f
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_1984hosting.sh
View file @
aa05a1e8
...
@@ -96,9 +96,10 @@ dns_1984hosting_rm() {
...
@@ -96,9 +96,10 @@ dns_1984hosting_rm() {
_debug
"Delete
$fulldomain
TXT record"
_debug
"Delete
$fulldomain
TXT record"
_url
=
"https://management.1984hosting.com/domains"
_get_zone_id
"
$@
"
_get_zone_id
"
$@
"
_htmlget
"
$url
/
$_zone_id
"
"
$_sub_domain
"
_htmlget
"
$
_
url
/
$_zone_id
"
"
$_sub_domain
"
_debug2 _response
"
$_response
"
_debug2 _response
"
$_response
"
entry_id
=
"
$(
echo
"
$_response
"
| _egrep_o
'entry_[0-9]+'
|
sed
's/entry_//'
)
"
entry_id
=
"
$(
echo
"
$_response
"
| _egrep_o
'entry_[0-9]+'
|
sed
's/entry_//'
)
"
_debug2 entry_id
"
$entry_id
"
_debug2 entry_id
"
$entry_id
"
...
@@ -216,9 +217,7 @@ _get_root() {
...
@@ -216,9 +217,7 @@ _get_root() {
#domain.com
#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"
_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]+'
)
"
_debug2 _zone_id
"
$_zone_id
"
_debug2 _zone_id
"
$_zone_id
"
...
...
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