From b9eca38d1983a5fb3b6a528438947d8102b4797a Mon Sep 17 00:00:00 2001 From: mmis Date: Tue, 18 Sep 2018 12:55:42 +0100 Subject: Enable passing config file to start script Issue-ID: POLICY-923 Change-Id: I8803b5a94e33d0175a84665dd3b253c7220451ea Signed-off-by: mmis --- .../policy-distribution-docker/src/main/docker/policy-dist.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'packages/policy-distribution-docker') diff --git a/packages/policy-distribution-docker/src/main/docker/policy-dist.sh b/packages/policy-distribution-docker/src/main/docker/policy-dist.sh index 854074fa..a6366c05 100644 --- a/packages/policy-distribution-docker/src/main/docker/policy-dist.sh +++ b/packages/policy-distribution-docker/src/main/docker/policy-dist.sh @@ -22,4 +22,10 @@ JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ POLICY_DISTRIBUTION_HOME=/opt/app/policy/distribution -$JAVA_HOME/bin/java -cp "$POLICY_DISTRIBUTION_HOME/etc:$POLICY_DISTRIBUTION_HOME/lib/*" org.onap.policy.distribution.main.startstop.Main -c $POLICY_DISTRIBUTION_HOME/etc/defaultConfig.json +CONFIG_FILE=$1 +if [ -z "$CONFIG_FILE" ] + then + CONFIG_FILE=$POLICY_DISTRIBUTION_HOME/etc/defaultConfig.json +fi + +$JAVA_HOME/bin/java -cp "$POLICY_DISTRIBUTION_HOME/etc:$POLICY_DISTRIBUTION_HOME/lib/*" org.onap.policy.distribution.main.startstop.Main -c $CONFIG_FILE -- cgit 1.2.3-korg