summaryrefslogtreecommitdiffstats
path: root/engine-d-standalone/src/main/assembly/bin/initDB.sh
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2021-06-04 16:31:47 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2021-06-04 08:43:04 +0000
commitf6b820706df03f17fa41ad99035f7fd8761e47b7 (patch)
tree29f111e38c17a599e74fc4876c0ba0a1d65b5dea /engine-d-standalone/src/main/assembly/bin/initDB.sh
parentff774a309d82c6d71064d32505492d7d0d8544cf (diff)
bugfix - accessibility of RESTful APIs
Change-Id: I85ecff0afa49f5588a5f0d63697b40d9a663233f Issue-ID: HOLMES-454 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'engine-d-standalone/src/main/assembly/bin/initDB.sh')
-rw-r--r--engine-d-standalone/src/main/assembly/bin/initDB.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine-d-standalone/src/main/assembly/bin/initDB.sh b/engine-d-standalone/src/main/assembly/bin/initDB.sh
index 94e7607..dac6878 100644
--- a/engine-d-standalone/src/main/assembly/bin/initDB.sh
+++ b/engine-d-standalone/src/main/assembly/bin/initDB.sh
@@ -47,11 +47,11 @@ if [ -z `env | grep PGPASSWORD` ]; then
need_unset=1
fi
-psql -U "'$user'" -p "'$port'" -h "'$host'" -d "'$dbname'" -f $main_path/dbscripts/postgresql/onap-holmes_engine-createobj.sql
-psql -U "'$user'" -p "'$port'" -h "'$host'" -d "'$dbname'" --command 'select * from alarm_info;'
+psql -U "$user" -p "$port" -h "$host" -d "$dbname" -f $main_path/dbscripts/postgresql/onap-holmes_engine-createobj.sql
+psql -U "$user" -p "$port" -h "$host" -d "$dbname" --command 'select * from alarm_info;'
sql_result=$?
-if [ "$need_unset"x == "1"x ]; then
+if [ "$need_unset"x = "1"x ]; then
unset PGPASSWORD
fi