aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora.sreekumar <ajith.sreekumar@bell.ca>2022-02-17 15:51:15 +0000
committera.sreekumar <ajith.sreekumar@bell.ca>2022-02-17 15:55:04 +0000
commite19b808526ebe4db4528523b0268c1b35bc59b0f (patch)
tree93c5fa4e017acd302278831b17a32fb9daebff47
parentce7b217261784bb4cd2edd44d482ce6a705c9232 (diff)
Fix PAP issue with group config loading
1) PAP fails to start in OOM when no pdp group configuration file is specified with the recent changes. This is fixed. 2) logback.xml file mounted in OOM is not used by PAP. This is also fixed in this review. Change-Id: I84096e1b100e2be20a9a2d95e1eb6ffc79486f29 Issue-ID: POLICY-3754 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
-rw-r--r--packages/policy-pap-docker/src/main/docker/policy-pap.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/policy-pap-docker/src/main/docker/policy-pap.sh b/packages/policy-pap-docker/src/main/docker/policy-pap.sh
index a276e34f..0ba2f429 100644
--- a/packages/policy-pap-docker/src/main/docker/policy-pap.sh
+++ b/packages/policy-pap-docker/src/main/docker/policy-pap.sh
@@ -3,7 +3,7 @@
# ============LICENSE_START=======================================================
# Copyright (C) 2019-2020 Nordix Foundation.
# Modifications Copyright (C) 2019-2021 AT&T Intellectual Property.
-# Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
+# Modifications Copyright (C) 2021-2022 Bell Canada. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -63,10 +63,14 @@ fi
if [ -f "${POLICY_HOME}/etc/mounted/groups.json" ]; then
CUSTOM_GROUPS="${POLICY_HOME}/etc/mounted/groups.json"
+else
+ CUSTOM_GROUPS="PapDb.json"
fi
+echo "PDP group configuration file: ${CUSTOM_GROUPS}"
+
$JAVA_HOME/bin/java \
- -Dlogback.configurationFile="${POLICY_HOME}/etc/logback.xml" \
+ -Dlogging.config="${POLICY_HOME}/etc/logback.xml" \
-Dserver.ssl.key-store="${KEYSTORE}" \
-Dserver.ssl.key-store-password="${KEYSTORE_PASSWD}" \
-Djavax.net.ssl.trustStore="${TRUSTSTORE}" \