diff options
author | GuangrongFu <fu.guangrong@zte.com.cn> | 2021-03-11 08:31:14 +0800 |
---|---|---|
committer | GuangrongFu <fu.guangrong@zte.com.cn> | 2021-04-13 08:17:07 +0800 |
commit | 8803f4bfcf9e35cb97127c6eb23254e91be8d397 (patch) | |
tree | d4cb169a8dd74d583e620e5316e255023fd9d13b /engine-d-standalone/src/main/assembly/bin | |
parent | ed7d372627d5beb544d3131cbf81ec7be1e470ae (diff) |
Fixed a Shell Error
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')
-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 |