Skip to content

Commit

Permalink
Update install-nginx.sh
Browse files Browse the repository at this point in the history
Neaten trailing slashes
  • Loading branch information
hyanwong authored Apr 8, 2024
1 parent 07cf603 commit 9909e7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install-nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WWW_IMAGES_SERVER_NAME="$(echo ${WWW_SERVER_NAME} | sed 's/^w*/images/')" # ima
[ -d "/usr/local/etc/nginx" ] && NGINX_PATH="/usr/local/etc/nginx"
mkdir -p "${NGINX_PATH}/conf.d/"
NGINX_LOG_PATH="/var/log/nginx"
NGINX_CERT_PATH="/var/db/acme/live/"
NGINX_CERT_PATH="/var/db/acme/live"
NGINX_DHPARAM_PATH="${NGINX_PATH}/dhparam.pem"
[ -d "/var/acme" ] && NGINX_CHALLENGE_PATH="/var/acme"

Expand All @@ -21,7 +21,7 @@ NGINX_DHPARAM_PATH="${NGINX_PATH}/dhparam.pem"

if [ ! -f "${NGINX_CERT_PATH}/${WWW_SERVER_NAME}/privkey" ]; then
# Fall back to self-signed bootstrap-cert
NGINX_CERT_PATH="${NGINX_PATH}/snakeoil-certs/"
NGINX_CERT_PATH="${NGINX_PATH}/snakeoil-certs"
NGINX_CHALLENGE_PATH="/dev/null"
for SN in onezoom.org ${WWW_SERVER_NAME} ${WWW_IMAGES_SERVER_NAME}; do
mkdir -p "${NGINX_CERT_PATH}/${SN}"
Expand Down

0 comments on commit 9909e7c

Please sign in to comment.