Add /etc/atb-directory
This commit is contained in:
parent
262a851045
commit
33a6dcb181
31
read_config
31
read_config
@ -180,6 +180,13 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
|
|||||||
log_fatal "$func:${LINENO}: $psa_update_dir does not exist"
|
log_fatal "$func:${LINENO}: $psa_update_dir does not exist"
|
||||||
fi
|
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"
|
readonly psa_base_ini_dir="${CUSTOMER_BASE_DIR}/opt/app"
|
||||||
if [ -d "$psa_base_ini_dir" ]; then
|
if [ -d "$psa_base_ini_dir" ]; then
|
||||||
log_debug "$func:${LINENO}: psa_base_ini_dir="
|
log_debug "$func:${LINENO}: psa_base_ini_dir="
|
||||||
@ -266,6 +273,14 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
|
|||||||
"does not exist"
|
"does not exist"
|
||||||
fi
|
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 SYS_CONFIG_INI="sysconfig.ini"
|
||||||
readonly __sysc_sysc_full="${PSA_SYSCONFIG_DIR}/$SYS_CONFIG_INI"
|
readonly __sysc_sysc_full="${PSA_SYSCONFIG_DIR}/$SYS_CONFIG_INI"
|
||||||
readonly SYSCONFIG_SYSCONFIG_INI_FULL="$__sysc_sysc_full"
|
readonly SYSCONFIG_SYSCONFIG_INI_FULL="$__sysc_sysc_full"
|
||||||
@ -277,6 +292,14 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
|
|||||||
"$SYSCONFIG_SYSCONFIG_INI_FULL does not exist"
|
"$SYSCONFIG_SYSCONFIG_INI_FULL does not exist"
|
||||||
fi
|
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"
|
readonly "SYSTEM_CONTROL_INI"="SystemControl.ini"
|
||||||
local __sysctrl_ini_full="${PSA_SYSCONFIG_DIR}/$SYSTEM_CONTROL_INI"
|
local __sysctrl_ini_full="${PSA_SYSCONFIG_DIR}/$SYSTEM_CONTROL_INI"
|
||||||
readonly SYSCONFIG_SYSCTRL_INI_FULL="$__sysctrl_ini_full"
|
readonly SYSCONFIG_SYSCTRL_INI_FULL="$__sysctrl_ini_full"
|
||||||
@ -287,6 +310,14 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
|
|||||||
log_fatal "$func:${LINENO}: $SYSCONFIG_SYSCTRL_INI_FULL does not exist"
|
log_fatal "$func:${LINENO}: $SYSCONFIG_SYSCTRL_INI_FULL does not exist"
|
||||||
fi
|
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"
|
readonly DC2C_SERIAL_JSON="${psa_config_dir}/DC2C_serial.json"
|
||||||
if [ -f "$DC2C_SERIAL_JSON" ]; then
|
if [ -f "$DC2C_SERIAL_JSON" ]; then
|
||||||
log_debug "$func:${LINENO}: DC2C_SERIAL_JSON="
|
log_debug "$func:${LINENO}: DC2C_SERIAL_JSON="
|
||||||
|
Loading…
Reference in New Issue
Block a user