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