Added customer_id_base_dir

This commit is contained in:
Gerhard Hoffmann 2022-06-03 19:24:13 +02:00
parent 77b7b29ed8
commit 66a41aa8f7

View File

@ -27,7 +27,7 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
if [ -z "$workspace_dir" ]; then if [ -z "$workspace_dir" ]; then
log_fatal "$func:${LINENO}: workspace_dir not set in $1" log_fatal "$func:${LINENO}: workspace_dir not set in $1"
fi fi
log_debug "$func:${LINENO}: workspace_dir=$working_dir" log_debug "$func:${LINENO}: workspace_dir=$workspace_dir"
readonly customer_location=$(cat "$1" | jq -r .customer_location) readonly customer_location=$(cat "$1" | jq -r .customer_location)
if [ -z "$customer_location" ]; then if [ -z "$customer_location" ]; then
@ -69,6 +69,11 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
local __customer_base_dir="$working_directory/${workspace_dir}" local __customer_base_dir="$working_directory/${workspace_dir}"
__customer_base_dir="${__customer_base_dir}/${customer_id}" __customer_base_dir="${__customer_base_dir}/${customer_id}"
readonly customer_id_base_dir=${__customer_base_dir}
log_debug "$func:${LINENO}: customer_id_base_dir="
log_debug "$func:${LINENO}: $customer_id_base_dir"
__customer_base_dir="${__customer_base_dir}/${customer_location}" __customer_base_dir="${__customer_base_dir}/${customer_location}"
readonly customer_location_dir="$__customer_base_dir" readonly customer_location_dir="$__customer_base_dir"