ATLAS-4846-Source-the-atlas-env-file-in-ATLAS-import.patch

Signed-off-by: Mandar Ambawane <mandar.ambawane@freestoneinfotech.com>
This commit is contained in:
pareshD 2024-04-12 11:28:15 +05:30 committed by Mandar Ambawane
parent 457deaa6eb
commit 42bf77ba59
4 changed files with 20 additions and 0 deletions

View File

@ -60,6 +60,11 @@ if [ -z "${ATLAS_CONF_DIR}" ] && [ -e /etc/atlas/conf ];then
fi
ATLASCPPATH=${ATLASCPPATH}:${ATLAS_CONF_DIR}
if [ -d "${ATLAS_CONF_DIR}" ] && [ -f "${ATLAS_CONF_DIR}/atlas-env.sh" ]; then
#source the atlas-env.sh file, use the exported argument into atlas-jvm
source ${ATLAS_CONF_DIR}/atlas-env.sh
fi
# log dir for applications
ATLAS_LOG_DIR="${ATLAS_LOG_DIR:-/var/log/atlas}"
export ATLAS_LOG_DIR

View File

@ -55,6 +55,11 @@ if [ -z "${ATLAS_CONF_DIR}" ] && [ -e /etc/atlas/conf ];then
fi
ATLASCPPATH=${ATLASCPPATH}:${ATLAS_CONF_DIR}
if [ -d "${ATLAS_CONF_DIR}" ] && [ -f "${ATLAS_CONF_DIR}/atlas-env.sh" ]; then
#source the atlas-env.sh file, use the exported argument into atlas-jvm
source ${ATLAS_CONF_DIR}/atlas-env.sh
fi
# log dir for applications
ATLAS_LOG_DIR="${ATLAS_LOG_DIR:-/var/log/atlas}"
export ATLAS_LOG_DIR

View File

@ -86,6 +86,11 @@ if [ -z "${ATLAS_CONF_DIR}" ] && [ -e /etc/atlas/conf ];then
fi
ATLASCPPATH=${ATLASCPPATH}:${ATLAS_CONF_DIR}
if [ -d "${ATLAS_CONF_DIR}" ] && [ -f "${ATLAS_CONF_DIR}/atlas-env.sh" ]; then
#source the atlas-env.sh file, use the exported argument into atlas-jvm
source ${ATLAS_CONF_DIR}/atlas-env.sh
fi
echo "Logging: ${ATLAS_LOG_DIR}/${ATLAS_LOG_FILE}"
echo "Log config: ${LOG_CONFIG}"

View File

@ -62,6 +62,11 @@ if [ -z "${ATLAS_CONF_DIR}" ] && [ -e /etc/atlas/conf ];then
fi
ATLASCPPATH=${ATLASCPPATH}:${ATLAS_CONF_DIR}
if [ -d "${ATLAS_CONF_DIR}" ] && [ -f "${ATLAS_CONF_DIR}/atlas-env.sh" ]; then
#source the atlas-env.sh file, use the exported argument into atlas-jvm
source ${ATLAS_CONF_DIR}/atlas-env.sh
fi
# log dir for applications
ATLAS_LOG_DIR="${ATLAS_LOG_DIR:-/var/log/atlas}"
export ATLAS_LOG_DIR