summaryrefslogtreecommitdiffstats
path: root/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2021-09-06 20:36:02 +0100
committerAndr� Schmid <andre.schmid@est.tech>2021-09-07 10:25:54 +0000
commit0ba5888b69b3ac6b60967ba9b64db96e87dc5c4e (patch)
treeca602ca10c9fb7e48bfaacf7fb5d78b2e81ea6f1 /openecomp-be/dist/sdc-onboard-db-init-docker/artifacts
parentb600063182fce15ac3060e4526feaea715e7ef08 (diff)
Fixing deployment failure
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3716 Change-Id: I33092244c7ce00a6e1b5c8d02d5056035d488b2a
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.sh8
1 files changed, 4 insertions, 4 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 3856e10f89..65811f6fc6 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
@@ -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"