summaryrefslogtreecommitdiffstats
path: root/packages/apex-pdp-package-full/src/main/package/scripts/apexOnapPf.sh
diff options
context:
space:
mode:
authora.sreekumar <ajith.sreekumar@est.tech>2020-01-08 12:55:20 +0000
committera.sreekumar <ajith.sreekumar@est.tech>2020-01-08 13:05:32 +0000
commit55f96a621f41534479f670b6a8a74a9fddbc2ee1 (patch)
treec2098a7d377d42534c2054ffb13676a2c4bdf94c /packages/apex-pdp-package-full/src/main/package/scripts/apexOnapPf.sh
parent6fae58f0d1c3c2374d39d4f91fcbc0cf95780ee7 (diff)
Enabling logback file to be loaded using oom configmap
Change-Id: I746ee57003175ae9e3f903ee3e5948ed1875dceb Issue-ID: POLICY-2308 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
Diffstat (limited to 'packages/apex-pdp-package-full/src/main/package/scripts/apexOnapPf.sh')
-rw-r--r--packages/apex-pdp-package-full/src/main/package/scripts/apexOnapPf.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/apex-pdp-package-full/src/main/package/scripts/apexOnapPf.sh b/packages/apex-pdp-package-full/src/main/package/scripts/apexOnapPf.sh
index 7c12e222f..56ab61b88 100644
--- a/packages/apex-pdp-package-full/src/main/package/scripts/apexOnapPf.sh
+++ b/packages/apex-pdp-package-full/src/main/package/scripts/apexOnapPf.sh
@@ -1,7 +1,7 @@
#!/bin/bash -x
#
# ============LICENSE_START=======================================================
-# Copyright (C) 2019 Nordix Foundation.
+# Copyright (C) 2019-2020 Nordix Foundation.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -69,6 +69,11 @@ if [[ -f "${HOME}"/config/policy-keystore ]]; then
cp -f "${HOME}"/config/policy-keystore "${APEX_HOME}"/etc/ssl/
fi
+if [[ -f "${HOME}"/config/logback.xml ]]; then
+ echo "overriding logback.xml"
+ cp -f "${HOME}"/config/logback.xml "${APEX_HOME}"/etc/
+fi
+
if [ $(whoami) == "$APEX_USER" ]
then
$APEX_HOME/bin/apexApps.sh onappf $*