From c15b01a0a692cc688f02f4ef5c5db608e7b37e38 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 5 Sep 2025 17:21:25 +0200 Subject: [PATCH 1/2] fix(config): unify config path detection across all scripts - Add platform detection to start.sh for consistent config paths - BSD systems: /usr/local/etc/furt/furt.conf - Linux systems: /etc/furt/furt.conf - Now consistent with setup-directories.sh and validate-config.sh - Follows DAW service separation standards Fixes #103 --- scripts/start.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/start.sh b/scripts/start.sh index 0a43a7c..354f528 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -17,9 +17,15 @@ echo -e "${GREEN}=== Furt Lua HTTP-Server Startup ===${NC}" LUA_COMMAND="" # Config check first (like old .env check) -if [ ! -f "/usr/local/etc/furt/furt.conf" ] && [ ! -f "$PROJECT_DIR/config/furt.conf" ]; then +if [ "$(uname)" = "OpenBSD" ] || [ "$(uname)" = "FreeBSD" ]; then + CONFIG_FILE="/usr/local/etc/furt/furt.conf" +else + CONFIG_FILE="/etc/furt/furt.conf" +fi + +if [ ! -f "$CONFIG_FILE" ] && [ ! -f "$PROJECT_DIR/config/furt.conf" ]; then echo -e "${RED}Error: furt.conf not found${NC}" - echo "Create config first in /usr/local/etc/furt/furt.conf or $PROJECT_DIR/config/furt.conf" + echo "Create config first in $CONFIG_FILE or $PROJECT_DIR/config/furt.conf" exit 1 fi From 56b5c43e98715921b3e6aab37315c98e04df345a Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 5 Sep 2025 17:21:25 +0200 Subject: [PATCH 2/2] chore: merkwerk auto-update --- .version_history | 1 + 1 file changed, 1 insertion(+) diff --git a/.version_history b/.version_history index bd1ffbe..b90cced 100644 --- a/.version_history +++ b/.version_history @@ -16,3 +16,4 @@ 25a29c32,eb64c39,main,2025-09-03T18:25:18Z,michael,git,lua-api 25a29c32,38a1108,main,2025-09-03T20:13:08Z,michael,git,lua-api 25a29c32,442b465,fix/systemd-type-forking,2025-09-05T15:02:31Z,michael,git,lua-api +25a29c32,c15b01a,fix/config-path-consistency,2025-09-05T15:21:25Z,michael,git,lua-api