summaryrefslogtreecommitdiffstats
path: root/engine-d-standalone/src/main/assembly/bin/initDB.sh
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2021-03-25 19:53:31 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2021-03-25 19:55:02 +0800
commite498a3ee13553ee2aa39224b7ef9e7e17779cef2 (patch)
tree5e8088c5b1cc777a314719c72e83b547f8272283 /engine-d-standalone/src/main/assembly/bin/initDB.sh
parentcb1bf03a460f4ee808675b0ef8ff089649ce6cae (diff)
Bumped the version to 1.3.21.3.2
Change-Id: I51895169c770b53568ebf764a44ced76cb136ac9 Issue-ID: HOLMES-428 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.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine-d-standalone/src/main/assembly/bin/initDB.sh b/engine-d-standalone/src/main/assembly/bin/initDB.sh
index 2e5d605..94e7607 100644
--- a/engine-d-standalone/src/main/assembly/bin/initDB.sh
+++ b/engine-d-standalone/src/main/assembly/bin/initDB.sh
@@ -47,8 +47,8 @@ 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