eval working_directory

This commit is contained in:
Gerhard Hoffmann 2022-06-03 21:09:10 +02:00
parent e71ece81c1
commit 838b932cac

View File

@ -48,8 +48,13 @@ read_config() {
log_fatal "$func:${LINENO}: customer_location not set in $1"
fi
local workspace="$(cat "$1" | jq -r .workspace_dir)"
__customer_base_dir="$PWD/${workspace}/${customer_id}/${customer_location}"
readonly working_directory="$(cat "$1" | jq -r .working_directory)"
log_info "$func:${LINENO}: working_directory is $working_directory"
readonly workspace_dir="$(cat "$1" | jq -r .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_location}"
readonly customer_base_dir="${__customer_base_dir}/${zone_group}/${zone}"
log_info "$func:${LINENO}: customer-base-dir is $customer_base_dir"