diff options
author | GuangrongFu <fu.guangrong@zte.com.cn> | 2021-05-17 18:56:05 +0800 |
---|---|---|
committer | GuangrongFu <fu.guangrong@zte.com.cn> | 2021-05-17 19:30:39 +0800 |
commit | c2a7c78225a54445098d666d72c6e84c21ca70ca (patch) | |
tree | 2855c81dbd6d3d0e1b787397b3558d9a13fab6e8 /rulemgt-standalone/src/main/assembly/bin/initDB.sh | |
parent | 6f0d10beffc66f5e44f91538b3cd396cce5f8c84 (diff) |
bugfix - rule creation failure on GUI
Issue-ID: HOLMES-440
Change-Id: I3ba937d992b054149d1c5cc072b5920935923ec5
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt-standalone/src/main/assembly/bin/initDB.sh')
-rw-r--r-- | rulemgt-standalone/src/main/assembly/bin/initDB.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/initDB.sh b/rulemgt-standalone/src/main/assembly/bin/initDB.sh index 3da96e9..86a2d80 100644 --- a/rulemgt-standalone/src/main/assembly/bin/initDB.sh +++ b/rulemgt-standalone/src/main/assembly/bin/initDB.sh @@ -45,11 +45,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_rulemgt-createobj.sql -psql -U "'$user'" -p "'$port'" -h "'$host'" -d "'$dbname'" --command 'select * from aplus_rule;' +psql -U "$user" -p "$port" -h "$host" -d "$dbname" -f $main_path/dbscripts/postgresql/onap-holmes_rulemgt-createobj.sql +psql -U "$user" -p "$port" -h "$host" -d "$dbname" --command 'select * from aplus_rule;' sql_result=$? -if [ "$need_unset"x == "1"x ]; then +if [ "$need_unset"x = "1"x ]; then unset PGPASSWORD fi |