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
a364ab4e
Commit
a364ab4e
authored
Jul 06, 2022
by
Bjarke Bruun
Browse files
Added '.' to 'DNS Services' as that is the correct provider name
parent
543c4423
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_dnsservices.sh
View file @
a364ab4e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
#Author: Bjarke Bruun <bbruun@gmail.com>
#Author: Bjarke Bruun <bbruun@gmail.com>
#Report Bugs here: https://github.com/acmesh-official/acme.sh/issues/4152
#Report Bugs here: https://github.com/acmesh-official/acme.sh/issues/4152
# Global variable to connect to the DNS
Services API
# Global variable to connect to the DNS
.
Services API
DNSServices_API
=
https://dns.services/api
DNSServices_API
=
https://dns.services/api
######## Public functions #####################
######## Public functions #####################
...
@@ -155,7 +155,7 @@ _get_root() {
...
@@ -155,7 +155,7 @@ _get_root() {
return
1
return
1
fi
fi
# Setup variables used by other functions to communicate with DNS
Services API
# Setup variables used by other functions to communicate with DNS
.
Services API
zoneInfo
=
$(
echo
"
$result
"
|
sed
"s,
\"
zones,
\n
&,g"
|
grep
zones |
cut
-d
'['
-f2
|
cut
-d
']'
-f1
|
tr
'}'
'\n'
|
grep
"
\"
$rootZone
\"
"
)
zoneInfo
=
$(
echo
"
$result
"
|
sed
"s,
\"
zones,
\n
&,g"
|
grep
zones |
cut
-d
'['
-f2
|
cut
-d
']'
-f1
|
tr
'}'
'\n'
|
grep
"
\"
$rootZone
\"
"
)
rootZoneName
=
"
$rootZone
"
rootZoneName
=
"
$rootZone
"
subDomainName
=
"
$(
echo
"
$domain
"
|
sed
"s,
\.
$rootZone
,,g"
)
"
subDomainName
=
"
$(
echo
"
$domain
"
|
sed
"s,
\.
$rootZone
,,g"
)
"
...
@@ -176,7 +176,7 @@ createRecord() {
...
@@ -176,7 +176,7 @@ createRecord() {
fulldomain
=
$1
fulldomain
=
$1
txtvalue
=
"
$2
"
txtvalue
=
"
$2
"
# Get root domain information - needed for DNS
Services API communication
# Get root domain information - needed for DNS
.
Services API communication
if
[
-z
"
$rootZoneName
"
]
||
[
-z
"
$rootZoneDomainID
"
]
||
[
-z
"
$rootZoneServiceID
"
]
;
then
if
[
-z
"
$rootZoneName
"
]
||
[
-z
"
$rootZoneDomainID
"
]
||
[
-z
"
$rootZoneServiceID
"
]
;
then
_get_root
"
$fulldomain
"
_get_root
"
$fulldomain
"
fi
fi
...
...
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