edit function load_project_config

This commit is contained in:
2025-09-28 13:06:00 +02:00
parent 41daccc455
commit 8c93c3c273

View File

@@ -5,8 +5,8 @@ IFS=$'\n\t'
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)" ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
CONFIG_DIR="$ROOT_DIR/config" CONFIG_DIR="$ROOT_DIR/config"
GLOBAL_CONFIG="$CONFIG_DIR/global/config.json" GLOBAL_CONFIG="$CONFIG_DIR/global/config.json"
PROJECTS_DIR="./projects" PROJECTS_DIR="$ROOT_DIR/projects"
PROJECT_CONFIG_DIR="./config/projects" PROJECT_CONFIG_DIR="$CONFIG_DIR/projects"
REGISTRY_CONFIG_DIR="$CONFIG_DIR/registries" REGISTRY_CONFIG_DIR="$CONFIG_DIR/registries"
LOGS_DIR="$ROOT_DIR/logs" LOGS_DIR="$ROOT_DIR/logs"
@@ -599,7 +599,7 @@ EOF
# Projektparameter laden # Projektparameter laden
load_project_config() { load_project_config() {
local project="$1" local project="$1"
local config_file="$CONFIG_DIR/$project.conf" local config_file="$PROJECT_CONFIG_DIR/$project/config-file"
if [[ -f "$config_file" ]]; then if [[ -f "$config_file" ]]; then
echo "Lade Konfiguration für Projekt: $project" echo "Lade Konfiguration für Projekt: $project"
image_name=$(grep "^image_name=" "$config_file" | cut -d= -f2) image_name=$(grep "^image_name=" "$config_file" | cut -d= -f2)