Skip to content
Permalink
Browse files

Merge pull request #2253 from Neilpang/dev

sync
  • Loading branch information...
Neilpang committed May 8, 2019
2 parents 0accdb9 + 11ecbd2 commit 92dd5e161077cb608e14998311efdb79a40c6f41
Showing with 2 additions and 1 deletion.
  1. +1 −0 Dockerfile
  2. +1 −1 dnsapi/dns_cf.sh
@@ -48,6 +48,7 @@ RUN for verb in help \
createCSR \
deactivate \
deactivate-account \
set-notify \
; do \
printf -- "%b" "#!/usr/bin/env sh\n/root/.acme.sh/acme.sh --${verb} --config-home /acme.sh \"\$@\"" >/usr/local/bin/--${verb} && chmod +x /usr/local/bin/--${verb} \
; done
@@ -161,7 +161,7 @@ _get_root() {
return 1
fi

if _contains "$response" "\"name\":\"$h\"" >/dev/null; then
if _contains "$response" "\"name\":\"$h\"" || _contains "$response" '"total_count":1'; then
_domain_id=$(echo "$response" | _egrep_o "\[.\"id\":\"[^\"]*\"" | _head_n 1 | cut -d : -f 2 | tr -d \")
if [ "$_domain_id" ]; then
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)

0 comments on commit 92dd5e1

Please sign in to comment.
You can’t perform that action at this time.