aboutsummaryrefslogtreecommitdiffstats
path: root/packages/policy-distribution-docker
diff options
context:
space:
mode:
authormmis <michael.morris@ericsson.com>2018-09-18 12:55:42 +0100
committermmis <michael.morris@ericsson.com>2018-09-18 12:57:25 +0100
commitb9eca38d1983a5fb3b6a528438947d8102b4797a (patch)
tree557eef0a8a1cd12230a5a829311bb90d72c555a3 /packages/policy-distribution-docker
parent7c0424863e18773e4504af6f2f04416ec314e7a7 (diff)
Enable passing config file to start script
Issue-ID: POLICY-923 Change-Id: I8803b5a94e33d0175a84665dd3b253c7220451ea Signed-off-by: mmis <michael.morris@ericsson.com>
Diffstat (limited to 'packages/policy-distribution-docker')
-rw-r--r--packages/policy-distribution-docker/src/main/docker/policy-dist.sh8
1 files changed, 7 insertions, 1 deletions
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