From 8000b32ceac79f7aa344d56d5205af584921e05f Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 28 Dec 2025 23:49:28 -0600 Subject: [PATCH] checking for crt before setting up service --- scripts/setup_wizard.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/setup_wizard.sh b/scripts/setup_wizard.sh index e97da6e..26ab8bf 100755 --- a/scripts/setup_wizard.sh +++ b/scripts/setup_wizard.sh @@ -128,6 +128,11 @@ export KEY_LOCATION=$(readlink -f $KEY_LOCATION) # 2. Confirm confirm_inputs "CERT_LOCATION" "KEY_LOCATION" +if [ ! -f "$CERT_LOCATION" ] || [ ! -f "$KEY_LOCATION" ]; then + log_error "Certificate or key file does not exist at specified locations." + exit 1 +fi + # 3. Configure REPO_URL_BASE=https://gitea.john-stream.com/john/soteria/raw/branch/main/ SERVICE_TEMPLATE_URL="${REPO_URL_BASE}systemd/cert-renewer.service"