diff options
author | 2021-06-04 16:31:47 +0800 | |
---|---|---|
committer | 2021-06-04 08:43:04 +0000 | |
commit | f6b820706df03f17fa41ad99035f7fd8761e47b7 (patch) | |
tree | 29f111e38c17a599e74fc4876c0ba0a1d65b5dea /engine-d-standalone/src/main/assembly/bin/initDB.sh | |
parent | ff774a309d82c6d71064d32505492d7d0d8544cf (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.sh | 6 |
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 |