Cluster configuration script should copy initial configuration files. 20/29720/1
authorShaleen Saxena <ssaxena@brocade.com>
Mon, 2 Nov 2015 21:21:34 +0000 (16:21 -0500)
committerLuis Gomez <ecelgp@gmail.com>
Sun, 15 Nov 2015 19:33:07 +0000 (19:33 +0000)
commitf1fc5e0dbe3dd195779b917ce7e80f1a5f347462
treea0b7fda5f5ced25977e5f4b1bbf4c6c488b2e7ef
parent7f8f4a3d31cb15b4dfda738657225fbf0a165be6
Cluster configuration script should copy initial configuration files.

The current version of configure_cluster.sh script needs the odl-mdsal-clustering
feature to be pre-configured, so that the configuration/initial/ directory has
the necessary cluster config files.

This fix will copy the initial configuration files, if they do not exist
currently. Also, I fixed two other issues:
 - The script failed to run if it was executed in the bin directory.
 - Some lines had tabs instead of spaces.

Change-Id: Iee27a37ef681831bd4c3f8496694c52bdc1613e0
Signed-off-by: Shaleen Saxena <ssaxena@brocade.com>
(cherry picked from commit 7086ff0638858d40e99055af3a16d64ea81010a5)
distributions/karaf/src/main/assembly/bin/configure_cluster.sh