edit function load_project_config
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user