From 8c93c3c2730383aa246c3e2aeb1ff772ad30fc51 Mon Sep 17 00:00:00 2001 From: pi-farm Date: Sun, 28 Sep 2025 13:06:00 +0200 Subject: [PATCH] edit function load_project_config --- scripts/image-builder.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/image-builder.sh b/scripts/image-builder.sh index 32f00d8..fbea139 100755 --- a/scripts/image-builder.sh +++ b/scripts/image-builder.sh @@ -5,8 +5,8 @@ IFS=$'\n\t' ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)" CONFIG_DIR="$ROOT_DIR/config" GLOBAL_CONFIG="$CONFIG_DIR/global/config.json" -PROJECTS_DIR="./projects" -PROJECT_CONFIG_DIR="./config/projects" +PROJECTS_DIR="$ROOT_DIR/projects" +PROJECT_CONFIG_DIR="$CONFIG_DIR/projects" REGISTRY_CONFIG_DIR="$CONFIG_DIR/registries" LOGS_DIR="$ROOT_DIR/logs" @@ -599,7 +599,7 @@ EOF # Projektparameter laden load_project_config() { local project="$1" - local config_file="$CONFIG_DIR/$project.conf" + local config_file="$PROJECT_CONFIG_DIR/$project/config-file" if [[ -f "$config_file" ]]; then echo "Lade Konfiguration für Projekt: $project" image_name=$(grep "^image_name=" "$config_file" | cut -d= -f2)