diff options
Diffstat (limited to 'packages/policy-distribution-docker/src/main/docker/policy-dist.sh')
-rw-r--r-- | packages/policy-distribution-docker/src/main/docker/policy-dist.sh | 8 |
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 |