Compare commits

...

2 Commits

Author SHA1 Message Date
838b932cac eval working_directory 2022-06-03 21:09:10 +02:00
e71ece81c1 Added working directory with absolute path 2022-06-03 21:08:37 +02:00
2 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"GIT_SSL_NO_VERIFY" : true,
"working_directory" : ".",
"working_directory" : "/home/root/szeged/UpdateController",
"workspace_dir" : "workspace",
"customer_location" : "szeged",
"customer_id" : "281",

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"