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"