From 23941176ba6bc378f9fe8a1216deb2af0d34dcdd Mon Sep 17 00:00:00 2001
From: Erik Thuning <boooink@gmail.com>
Date: Mon, 24 Mar 2025 15:28:31 +0100
Subject: [PATCH] FIX: setup script would crash if proceeding when config file
 exists

Basically all configuration variables are set in the if block governed by
the existence of config.ini. If the file already exists, the script would
quickly run into uninitialized variables and crash. The script will now
refuse to proceed if config.ini exists.
---
 setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.sh b/setup.sh
index 7848c4b..f8d9615 100755
--- a/setup.sh
+++ b/setup.sh
@@ -84,7 +84,7 @@ if ! [ -e "$app_base/config.ini" ]; then
     echo "NOTE: you will need to manually set the values in the [oauth] section to something meaningful."
     echo
 else
-    echo "Config file exists."
+    die "Config file exists, cannot proceed."
 fi
 echo