From e19b808526ebe4db4528523b0268c1b35bc59b0f Mon Sep 17 00:00:00 2001 From: "a.sreekumar" Date: Thu, 17 Feb 2022 15:51:15 +0000 Subject: 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 --- packages/policy-pap-docker/src/main/docker/policy-pap.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'packages/policy-pap-docker/src') 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}" \ -- cgit 1.2.3-korg