From 8f60dad7f655b48216c4ce4c45f060845af61911 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 29 Dec 2025 23:48:48 -0600 Subject: [PATCH] not changing directory --- scripts/setup_wizard.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/setup_wizard.sh b/scripts/setup_wizard.sh index a87fcbf..b102a87 100755 --- a/scripts/setup_wizard.sh +++ b/scripts/setup_wizard.sh @@ -160,14 +160,13 @@ confirm_inputs "CERT_LOCATION" "KEY_LOCATION" if [ ! -f "$CERT_LOCATION" ] || [ ! -f "$KEY_LOCATION" ]; then (umask 077; mkdir -p "${CERT_DIR}") - cd "${CERT_DIR}" - step ca root root_ca.crt - hostname=$(hostname -s) step ca certificate "$hostname" cert.pem key.pem \ + step ca root "${CERT_DIR}/root_ca.crt" + hostname=$(hostname -s) step ca certificate "$hostname" \ + "${CERT_DIR}/cert.pem" "${CERT_DIR}/key.pem" \ --san "$hostname" \ --san "$hostname.john-stream.com" \ --san "$IP_ADDRESS" \ --provisioner admin - exit 1 fi # 3. Configure