Fixing deployment failure 02/123902/2
authorMichaelMorris <michael.morris@est.tech>
Mon, 6 Sep 2021 19:36:02 +0000 (20:36 +0100)
committerAndr� Schmid <andre.schmid@est.tech>
Tue, 7 Sep 2021 10:25:54 +0000 (10:25 +0000)
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-3716
Change-Id: I33092244c7ce00a6e1b5c8d02d5056035d488b2a

openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/startup.sh

index 3856e10..65811f6 100644 (file)
@@ -16,7 +16,7 @@ fi
 echo "$(date) [Info] Going to initialize sdc onboard cassandra: user=$SDC_USER; host=$CS_HOST; port=$CS_PORT"
 
 echo "$(date) [Info] Initializing onboard keyspaces"
-cqlsh -u "$SDC_USER" -p "$SDC_PASSWORD" -f init_keyspaces.cql "$CS_HOST" "$CS_PORT"
+cqlsh -u $SDC_USER -p $SDC_PASSWORD -f init_keyspaces.cql $CS_HOST $CS_PORT
 rc=$?
 
 if [ $rc != 0 ]; then
@@ -26,7 +26,7 @@ fi
 echo "$(date) [Info] Finished initializing onboard keyspaces"
 
 echo "$(date) [Info] Initializing onboard schemas"
-cqlsh -u "$SDC_USER" -p "$SDC_PASSWORD" -f init_schemas.cql "$CS_HOST" "$CS_PORT"
+cqlsh -u $SDC_USER -p $SDC_PASSWORD -f init_schemas.cql $CS_HOST $CS_PORT
 rc=$?
 
 if [ $rc != 0 ]; then
@@ -39,7 +39,7 @@ echo "$(date) [Info] Upgrading onboard schemas"
 for entry in "$SDC_HOME/upgrade-scripts"/*
 do
   echo "$(date) Running upgrade file '$entry'"
-  cqlsh -u "$SDC_USER" -p "$SDC_PASSWORD" -f "$entry" "$CS_HOST" "$CS_PORT"
+  cqlsh -u $SDC_USER -p $SDC_PASSWORD -f $entry $CS_HOST $CS_PORT
   rc=$?
   if [ $rc != 0 ]; then
     echo "$(date) [Warn] Upgrade failed for file '$entry'. It is possible that the upgrade was previously applied.";
@@ -47,4 +47,4 @@ do
   echo "$(date) Successfully ran upgrade file '$entry'"
 done
 
-echo "$(date) [Info] Onboarding init was successful"
\ No newline at end of file
+echo "$(date) [Info] Onboarding init was successful"