Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
b9311282
Commit
b9311282
authored
Oct 09, 2016
by
neilpang
Browse files
minor fix pdns api
parent
d6f0c2b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_pdns.sh
View file @
b9311282
...
...
@@ -8,6 +8,8 @@
#PDNS_Token="0123456789ABCDEF"
#PDNS_Ttl=60
DEFAULT_PDNS_TTL
=
60
######## Public functions #####################
#Usage: add _acme-challenge.www.domain.com "123456789ABCDEF0000000000000000000000000000000000000"
dns_pdns_add
()
{
...
...
@@ -33,13 +35,17 @@ dns_pdns_add() {
fi
if
[
-z
"
$PDNS_Ttl
"
]
;
then
PDNS_Ttl
=
60
PDNS_Ttl
=
$DEFAULT_PDNS_TTL
fi
#save the api addr and key to the account conf file.
_saveaccountconf PDNS_Url
"
$PDNS_Url
"
_saveaccountconf PDNS_ServerId
"
$PDNS_ServerId
"
_saveaccountconf PDNS_Token
"
$PDNS_Token
"
if
[
"
$PDNS_Ttl
"
!=
"
$DEFAULT_PDNS_TTL
"
]
;
then
_saveaccountconf PDNS_Ttl
"
$PDNS_Ttl
"
fi
_debug
"First detect the root zone"
if
!
_get_root
$fulldomain
;
then
...
...
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