From 3e78a77623381451581ea5f57acb2aa81546c205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20unbrot=20P=C3=A4tzold?= Date: Sun, 3 May 2026 13:51:39 +0200 Subject: [PATCH] configure.sh: seed wizard from setup_system.conf when it exists Use config/setup_system.conf as the template for configure.conf when present, so existing values appear as defaults. Falls back to the dist file on a fresh install. Co-Authored-By: Claude Sonnet 4.6 --- system_setup/configure.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/system_setup/configure.sh b/system_setup/configure.sh index acdbe02..5b4d785 100755 --- a/system_setup/configure.sh +++ b/system_setup/configure.sh @@ -5,9 +5,15 @@ # SPDX-License-Identifier: AGPL-3.0-or-later SCRIPTDIR="$(cd "$(dirname "$0")" && pwd)" -CONF_DIST="${SCRIPTDIR}/config.dist/setup_system.conf.dist" CONF_FILE="${SCRIPTDIR}/../config.d/configure.conf" +CONF_EXISTING="${SCRIPTDIR}/../config/setup_system.conf" +if [[ -f "$CONF_EXISTING" ]]; then + CONF_DIST="$CONF_EXISTING" +else + CONF_DIST="${SCRIPTDIR}/config.dist/setup_system.conf.dist" +fi + # Prompt for a single value; returns the old value unchanged if the user presses Enter. prompt_value() { local name="$1" current="$2" new_val