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-10 14:14:57 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2021-04-13 08:17:04 +0800
commit201bbc146fb1de5623acc5aff69d4c60cc1fe9e7 (patch)
treeda1076216bd563363cab9d7589941b6cb3e4bf89 /engine-d-standalone/src/main/assembly/bin/initDB.sh
parent6a12273500d73ed4852f3fa84b6aaaa5f27c2776 (diff)
Fixed some errors in shell scripts
Change-Id: I7dd754eec3207c2b3ed8fdddbf286d69378e230b Issue-ID: HOLMES-396 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.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine-d-standalone/src/main/assembly/bin/initDB.sh b/engine-d-standalone/src/main/assembly/bin/initDB.sh
index 3d2e8bc..cc27b09 100644
--- a/engine-d-standalone/src/main/assembly/bin/initDB.sh
+++ b/engine-d-standalone/src/main/assembly/bin/initDB.sh
@@ -51,7 +51,7 @@ psql -U "$user" -p "$port" -h "$host" -d "$dbname" -f $main_path/dbscripts/postg
psql -U "$user" -p "$port" -h "$host" -d "$dbname" --command 'select * from alarm_info;'
sql_result=$?
-if [ $need_unset -eq 1 ]; then
+if [ $need_unset = 1 ]; then
unset PGPASSWORD
fi