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
b23718f3
Commit
b23718f3
authored
Aug 21, 2018
by
Jens Reimann
Browse files
Add support for additional Lexicon options
parent
9173140d
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_lexicon.sh
View file @
b23718f3
...
@@ -78,7 +78,11 @@ dns_lexicon_add() {
...
@@ -78,7 +78,11 @@ dns_lexicon_add() {
domain
=
$(
printf
"%s"
"
$fulldomain
"
|
cut
-d
.
-f
2-999
)
domain
=
$(
printf
"%s"
"
$fulldomain
"
|
cut
-d
.
-f
2-999
)
$lexicon_cmd
"
$PROVIDER
"
create
"
${
domain
}
"
TXT
--name
=
"_acme-challenge.
${
domain
}
."
--content
=
"
${
txtvalue
}
"
_secure_debug LEXICON_OPTS
"
$LEXICON_OPTS
"
_savedomainconf LEXICON_OPTS
"
$LEXICON_OPTS
"
# shellcheck disable=SC2086
$lexicon_cmd
"
$PROVIDER
"
$LEXICON_OPTS
create
"
${
domain
}
"
TXT
--name
=
"_acme-challenge.
${
domain
}
."
--content
=
"
${
txtvalue
}
"
}
}
...
@@ -93,6 +97,7 @@ dns_lexicon_rm() {
...
@@ -93,6 +97,7 @@ dns_lexicon_rm() {
domain
=
$(
printf
"%s"
"
$fulldomain
"
|
cut
-d
.
-f
2-999
)
domain
=
$(
printf
"%s"
"
$fulldomain
"
|
cut
-d
.
-f
2-999
)
$lexicon_cmd
"
$PROVIDER
"
delete
"
${
domain
}
"
TXT
--name
=
"_acme-challenge.
${
domain
}
."
--content
=
"
${
txtvalue
}
"
# shellcheck disable=SC2086
$lexicon_cmd
"
$PROVIDER
"
$LEXICON_OPTS
delete
"
${
domain
}
"
TXT
--name
=
"_acme-challenge.
${
domain
}
."
--content
=
"
${
txtvalue
}
"
}
}
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