summaryrefslogtreecommitdiffstats
path: root/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts
diff options
context:
space:
mode:
authork.kedron <k.kedron@partner.samsung.com>2019-07-09 15:44:54 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-07-10 13:38:49 +0000
commit57844f30fc90a9b5007180c2da7a06977942d4fe (patch)
tree9159d4ca6e49503f00bf6c4f0bfc332f0628259d /openecomp-be/dist/sdc-onboard-db-init-docker/artifacts
parent004fb6486e9f31a2f8398051c77dcd8ce86e20d2 (diff)
Fixed the startup.sh script in the sdc-onboard-db-init-docker.
Changed the instruction order to get the cqlsh command status. Issue-ID: SDC-2425 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I173244af91e091d5cbb6979a8c5819b2646d6196
Diffstat (limited to 'openecomp-be/dist/sdc-onboard-db-init-docker/artifacts')
-rw-r--r--openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/startup.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/startup.sh b/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/startup.sh
index c8061021ec..02354dbd6e 100644
--- a/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/startup.sh
+++ b/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/startup.sh
@@ -18,21 +18,21 @@ echo "[Info] Going to initialize sdc onboard cassandra: user=$SDC_USER; host=$CS
echo "[Info] Initializing onboard keyspaces"
date;
cqlsh -u $SDC_USER -p $SDC_PASSWORD -f init_keyspaces.cql $CS_HOST $CS_PORT
+rc=$?
date;
-rc=$?
-if [[ $rc != 0 ]]; then
- echo "[Error] Failed to initialize onboard keyspaces";
- exit $rc;
+if [[ $rc != 0 ]]; then
+ echo "[Error] Failed to initialize onboard keyspaces";
+ exit $rc;
fi
echo "[Info] Initializing onboard schemas"
date;
cqlsh -u $SDC_USER -p $SDC_PASSWORD -f init_schemas.cql $CS_HOST $CS_PORT
+rc=$?
date;
-rc=$?
-if [[ $rc != 0 ]]; then
- echo "[Error] Failed to initialize onboard schemas";
- exit $rc;
-fi \ No newline at end of file
+if [[ $rc != 0 ]]; then
+ echo "[Error] Failed to initialize onboard schemas";
+ exit $rc;
+fi