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
09ed4219
Commit
09ed4219
authored
Feb 04, 2017
by
David Kerr
Browse files
Merge remote-tracking branch 'upstream/master' into FreeDNS
parents
87f5ec5b
f2a6dc4d
Changes
3
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
09ed4219
...
...
@@ -1820,14 +1820,18 @@ _starttlsserver() {
_readlink
()
{
_rf
=
"
$1
"
if
!
readlink
-f
"
$_rf
"
2>/dev/null
;
then
if
_startswith
"
$_rf
"
"
\.
/
$PROJECT_ENTRY
"
;
then
printf
--
"%s"
"
$(
pwd
)
/
$PROJECT_ENTRY
"
if
_startswith
"
$_rf
"
"
/
"
;
then
echo
"
$_rf
"
return
0
fi
readlink
"
$_rf
"
echo
"
$(
pwd
)
/
$_rf
"
| _conapath
fi
}
_conapath
()
{
sed
"s#/
\.
/#/#g"
}
__initHome
()
{
if
[
-z
"
$_SCRIPT_HOME
"
]
;
then
if
_exists
readlink
&&
_exists
dirname
;
then
...
...
@@ -4666,7 +4670,7 @@ _process() {
HTTPS_INSECURE
=
"1"
;;
--ca-bundle
)
_ca_bundle
=
"
$(
readlink
-f
"
$2
"
)
"
_ca_bundle
=
"
$(
_
readlink
-f
"
$2
"
)
"
CA_BUNDLE
=
"
$_ca_bundle
"
shift
;;
...
...
deploy/README.md
0 → 100644
View file @
09ed4219
#Using deploy api
dnsapi/dns_lua.sh
View file @
09ed4219
...
...
@@ -67,7 +67,7 @@ dns_lua_add() {
_debug
"record_id"
"
$record_id
"
_LUA_rest PUT
"zones/
$_domain_id
/records/
$record_id
"
"{
\"
id
\"
:
$record_id
,
\"
type
\"
:
\"
TXT
\"
,
\"
name
\"
:
\"
$fulldomain
.
\"
,
\"
content
\"
:
\"
$txtvalue
\"
,
\"
zone_id
\"
:
$_domain_id
,
\"
ttl
\"
:120}"
if
[
"
$?
"
=
"0"
]
&&
_contains
"
$response
"
"updated_at"
;
then
if
[
"
$?
"
=
"0"
]
&&
_contains
"
$response
"
"updated_at"
;
then
_info
"Updated!"
#todo: check if the record takes effect
return
0
...
...
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