Add /etc/atb-directory
This commit is contained in:
parent
262a851045
commit
33a6dcb181
31
read_config
31
read_config
@ -179,6 +179,13 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
|
||||
else
|
||||
log_fatal "$func:${LINENO}: $psa_update_dir does not exist"
|
||||
fi
|
||||
|
||||
readonly PSA_ATB_SYS_DIR="${CUSTOMER_BASE_DIR}/etc/atb"
|
||||
if [ -d "$PSA_ATB_SYS_DIR" ]; then
|
||||
log_debug "$func:${LINENO}: PSA_ATB_SYS_DIR=$PSA_ATB_SYS_DIR"
|
||||
else
|
||||
log_fatal "$func:${LINENO}: $PSA_ATB_SYS_DIR does not exist"
|
||||
fi
|
||||
|
||||
readonly psa_base_ini_dir="${CUSTOMER_BASE_DIR}/opt/app"
|
||||
if [ -d "$psa_base_ini_dir" ]; then
|
||||
@ -266,6 +273,14 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
|
||||
"does not exist"
|
||||
fi
|
||||
|
||||
readonly ATB_ISMASMGR_INI_FULL="${PSA_ATB_SYS_DIR}/$ISMASMGR_INI"
|
||||
if [ -f "$ATB_ISMASMGR_INI_FULL" ]; then
|
||||
log_debug "$func:${LINENO}: atb_ismasmgr.ini="
|
||||
log_debug "$func:${LINENO}: $ATB_ISMASMGR_INI_FULL"
|
||||
else
|
||||
log_fatal "$func:${LINENO}: $ATB_ISMASMGR_INI_FULL does not exist"
|
||||
fi
|
||||
|
||||
readonly SYS_CONFIG_INI="sysconfig.ini"
|
||||
readonly __sysc_sysc_full="${PSA_SYSCONFIG_DIR}/$SYS_CONFIG_INI"
|
||||
readonly SYSCONFIG_SYSCONFIG_INI_FULL="$__sysc_sysc_full"
|
||||
@ -276,6 +291,14 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
|
||||
log_fatal "$func:${LINENO}: "\
|
||||
"$SYSCONFIG_SYSCONFIG_INI_FULL does not exist"
|
||||
fi
|
||||
|
||||
readonly ATB_SYSCONFIG_INI_FULL="${PSA_ATB_SYS_DIR}/$SYS_CONFIG_INI"
|
||||
if [ -f "$ATB_SYSCONFIG_INI_FULL" ]; then
|
||||
log_debug "$func:${LINENO}: atb_sysconfig.ini="
|
||||
log_debug "$func:${LINENO}: $ATB_SYSCONFIG_INI_FULL"
|
||||
else
|
||||
log_fatal "$func:${LINENO}: $ATB_SYSCONFIG_INI_FULL does not exist"
|
||||
fi
|
||||
|
||||
readonly "SYSTEM_CONTROL_INI"="SystemControl.ini"
|
||||
local __sysctrl_ini_full="${PSA_SYSCONFIG_DIR}/$SYSTEM_CONTROL_INI"
|
||||
@ -286,6 +309,14 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
|
||||
else
|
||||
log_fatal "$func:${LINENO}: $SYSCONFIG_SYSCTRL_INI_FULL does not exist"
|
||||
fi
|
||||
|
||||
readonly ATB_SYSCTRL_INI_FULL="${PSA_ATB_SYS_DIR}/$SYSTEM_CONTROL_INI"
|
||||
if [ -f "$ATB_SYSCTRL_INI_FULL" ]; then
|
||||
log_debug "$func:${LINENO}: atb_systemcontrol.ini="
|
||||
log_debug "$func:${LINENO}: $ATB_SYSCTRL_INI_FULL"
|
||||
else
|
||||
log_fatal "$func:${LINENO}: $ATB_SYSCTRL_INI_FULL does not exist"
|
||||
fi
|
||||
|
||||
readonly DC2C_SERIAL_JSON="${psa_config_dir}/DC2C_serial.json"
|
||||
if [ -f "$DC2C_SERIAL_JSON" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user