From 04044eda83f6a717db41be7b56c11391c89665bd Mon Sep 17 00:00:00 2001 From: shuki Date: Fri, 6 Mar 2026 15:40:25 +0200 Subject: [PATCH] Fix installer exit when WEB_USER not found in config grep returns exit 1 when no match, which with set -eo pipefail kills the script. Add || true to the grep pipeline in credential extraction. Co-Authored-By: Claude Opus 4.6 --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index b7066c4..a288f76 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -164,7 +164,7 @@ enable_web="n" read -rp "Enable web dashboard (TUI in browser)? (y/n) [n]: " enable_web /dev/null | sed 's/^WEB_USER="//' | sed 's/"$//')" + web_user="$(grep '^WEB_USER=' "$CONFIG_DIR/gniza.conf" 2>/dev/null | sed 's/^WEB_USER="//' | sed 's/"$//' || true)" web_user="${web_user:-admin}" api_key="$(python3 -c 'import secrets; print(secrets.token_urlsafe(32))')" if grep -q "^WEB_USER=" "$CONFIG_DIR/gniza.conf" 2>/dev/null; then