diff options
author | GuangrongFu <fu.guangrong@zte.com.cn> | 2021-03-11 08:31:14 +0800 |
---|---|---|
committer | GuangrongFu <fu.guangrong@zte.com.cn> | 2021-03-11 08:31:14 +0800 |
commit | 43144aab3f931a6225333bf9d3380f118370b53d (patch) | |
tree | d4cb169a8dd74d583e620e5316e255023fd9d13b /engine-d-standalone/src/main/assembly/bin/initDB.sh | |
parent | 4771b657455b80fef19d4aa1ccf19be38edcdf7e (diff) |
Fixed a Shell Error1.3.0
Change-Id: I2c9c66804ea6e1f3a8ba9ab14bead41e9f15fbd9
Issue-ID: HOLMES-419
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 | 2 |
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 cc27b09..2e5d605 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 = 1 ]; then +if [ "$need_unset"x == "1"x ]; then unset PGPASSWORD fi |