Commit 98394f99 authored by neilpang's avatar neilpang
Browse files

fix server host

parent cae50e16
...@@ -2265,7 +2265,7 @@ _initpath() { ...@@ -2265,7 +2265,7 @@ _initpath() {
fi fi
fi fi
_ACME_SERVER_HOST="$(echo "$ACME_DIRECTORY" | cut -d : -f 2 | tr -d '/')" _ACME_SERVER_HOST="$(echo "$ACME_DIRECTORY" | cut -d : -f 2 | tr -s / | cut -d / -f 2)"
_debug2 "_ACME_SERVER_HOST" "$_ACME_SERVER_HOST" _debug2 "_ACME_SERVER_HOST" "$_ACME_SERVER_HOST"
CA_DIR="$CA_HOME/$_ACME_SERVER_HOST" CA_DIR="$CA_HOME/$_ACME_SERVER_HOST"
...@@ -5124,6 +5124,7 @@ _process() { ...@@ -5124,6 +5124,7 @@ _process() {
_openssl_bin="" _openssl_bin=""
_syslog="" _syslog=""
_use_wget="" _use_wget=""
_server=""
while [ ${#} -gt 0 ]; do while [ ${#} -gt 0 ]; do
case "${1}" in case "${1}" in
...@@ -5242,6 +5243,7 @@ _process() { ...@@ -5242,6 +5243,7 @@ _process() {
;; ;;
--server) --server)
ACME_DIRECTORY="$2" ACME_DIRECTORY="$2"
_server="$ACME_DIRECTORY"
export ACME_DIRECTORY export ACME_DIRECTORY
shift shift
;; ;;
...@@ -5568,6 +5570,9 @@ _process() { ...@@ -5568,6 +5570,9 @@ _process() {
if [ "$DEBUG" ]; then if [ "$DEBUG" ]; then
version version
if [ "$_server" ]; then
_debug "Using server: $_server"
fi
fi fi
case "${_CMD}" in case "${_CMD}" in
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment