From 862b5982e46b6ac581440203769da23a5a1f3f69 Mon Sep 17 00:00:00 2001 From: Github-Citizen <80302627+Github-Citizen@users.noreply.github.com> Date: Sun, 7 Aug 2022 20:39:13 -0400 Subject: [PATCH] Update localhost.sh --- deploy/localhost.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/deploy/localhost.sh b/deploy/localhost.sh index a96c0de5..a8d9b0e9 100644 --- a/deploy/localhost.sh +++ b/deploy/localhost.sh @@ -2,7 +2,7 @@ # # Deploy cert to localhost similar to certbot behavior # -# export DEPLOY_LOCALHOST_PATH="/path/to/certs" +# export DEPLOY_LOCALHOST_ROOT_PATH="/path/to/certs" # # Deploys as: # /path/to/certs/domain.tld/privkey.pem @@ -25,27 +25,27 @@ localhost_deploy() { _debug _cca "$_cca" _debug _cfullchain "$_cfullchain" - _getdeployconf DEPLOY_LOCALHOST_PATH + _getdeployconf DEPLOY_LOCALHOST_ROOT_PATH - _debug DEPLOY_LOCALHOST_PATH "$DEPLOY_LOCALHOST_PATH" + _debug DEPLOY_LOCALHOST_ROOT_PATH "$DEPLOY_LOCALHOST_ROOT_PATH" if [ -z "$_cdomain" ]; then _err "Domain not defined" return 1 fi - if [ -z "$DEPLOY_LOCALHOST_PATH" ]; then - _err "DEPLOY_LOCALHOST_PATH not defined" + if [ -z "$DEPLOY_LOCALHOST_ROOT_PATH" ]; then + _err "DEPLOY_LOCALHOST_ROOT_PATH not defined" return 1 fi - _ssl_path="$DEPLOY_LOCALHOST_PATH" + _ssl_path="$DEPLOY_LOCALHOST_ROOT_PATH" if [ ! -d "$_ssl_path" ]; then _err "Path not found: $_ssl_path" return 1 fi - _savedeployconf DEPLOY_LOCALHOST_PATH "$DEPLOY_LOCALHOST_PATH" + _savedeployconf DEPLOY_LOCALHOST_ROOT_PATH "$DEPLOY_LOCALHOST_ROOT_PATH" _ssl_path="$_ssl_path/$_cdomain" mkdir -p "$_ssl_path"