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:
parent
457deaa6eb
commit
42bf77ba59
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue