summaryrefslogtreecommitdiffstats
path: root/packages/docker/src/main
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2018-04-03 21:34:01 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-03 21:34:01 +0000
commite313080641069b3bfc1f497113c57f1667b72bbc (patch)
tree19db3da5e6c69e8e2e408e51192e1e456a1034c1 /packages/docker/src/main
parent11eb39f53842dff62e81a38ab599ddbc97cf7b73 (diff)
parent80cbbc8710292ae08437daa6e3390cc0190e3139 (diff)
Merge "ONAP log files consolidation"
Diffstat (limited to 'packages/docker/src/main')
-rw-r--r--packages/docker/src/main/docker/docker-install.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/docker/src/main/docker/docker-install.sh b/packages/docker/src/main/docker/docker-install.sh
index cd3e1f09b..1dd57ab36 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,11 @@ if [[ -z ${POLICY_GROUP} ]]; then
exit 1
fi
+if [[ -z ${POLICY_LOGS} ]]; then
+ echo "POLICY_LOGS environment variable NOT set, default to /var/log/onap"
+ 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)."