summaryrefslogtreecommitdiffstats
path: root/packages/docker/src/main
diff options
context:
space:
mode:
authorChou, Joseph (JC2555) <jc2555@att.com>2018-03-22 11:22:35 -0400
committerChou, Joseph (JC2555) <jc2555@att.com>2018-03-23 18:05:27 -0400
commit669931e76de18aabb14f9ff873da4783f8c83d7a (patch)
treed289226c55b0e7adfe9f56ea6dc6f9e32120dbca /packages/docker/src/main
parentcc7d8f696dd7717493dfc87e41884c7dd9923b83 (diff)
ONAP code change for log files consolidation
Code change for log files consolidation of PAP, PDP, BRMSGW, Console and db script Issue-ID: POLICY-562 Change-Id: I416ba7748b841bb2b1a31682e2b1631e279549e8 Signed-off-by: Chou, Joseph (JC2555) <jc2555@att.com>
Diffstat (limited to 'packages/docker/src/main')
-rw-r--r--packages/docker/src/main/docker/docker-install.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/docker/src/main/docker/docker-install.sh b/packages/docker/src/main/docker/docker-install.sh
index e8b9aaf14..c15f36f38 100644
--- a/packages/docker/src/main/docker/docker-install.sh
+++ b/packages/docker/src/main/docker/docker-install.sh
@@ -151,6 +151,7 @@ function configure_component() {
SED_LINE+=" -e 's!\${{KEYSTORE_PASSWD}}!${KEYSTORE_PASSWD}!g' "
SED_LINE+=" -e 's!\${{JAVA_HOME}}!${JAVA_HOME}!g' "
SED_LINE+=" -e 's!\${{COMPONENT_TYPE}}!${COMPONENT_TYPE}!g' "
+ SED_LINE+=" -e 's!\${{POLICY_LOGS}}!${POLICY_LOGS}!g' "
while read line || [ -n "${line}" ]; do
if [[ -n $line ]] && [[ $line != \#* ]]; then
@@ -658,6 +659,12 @@ if [[ -z ${POLICY_GROUP} ]]; then
exit 1
fi
+if [[ -z ${POLICY_LOGS} ]]; then
+ echo "POLICY_LOGS environment variable NOT set, default to /var/log"
+ export POLICY_LOGS="/var/log/onap"
+fi
+
+
FQDN=$(hostname -f 2> /dev/null)
if [[ $? != 0 || -z ${FQDN} ]]; then
echo "error: cannot determine the FQDN for this host $(hostname)."