diff options
author | GuangrongFu <fu.guangrong@zte.com.cn> | 2021-03-11 08:30:26 +0800 |
---|---|---|
committer | GuangrongFu <fu.guangrong@zte.com.cn> | 2021-03-11 08:30:26 +0800 |
commit | 680eede1040f09278b8d94a0e43744b843547f47 (patch) | |
tree | 9b056ce9e3bb886db7c46bdeecc7e846719da327 /rulemgt-standalone/src/main/assembly | |
parent | b417cab4eb9453c577d906a68a1ae8036cb3073b (diff) |
Fixed a Shell Error1.3.0
Change-Id: I5d1fb5d370e0f760708f9048492567f0e9ed11f6
Issue-ID: HOLMES-419
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt-standalone/src/main/assembly')
-rw-r--r-- | rulemgt-standalone/src/main/assembly/bin/initDB.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/initDB.sh b/rulemgt-standalone/src/main/assembly/bin/initDB.sh index 89f9264..88c2022 100644 --- a/rulemgt-standalone/src/main/assembly/bin/initDB.sh +++ b/rulemgt-standalone/src/main/assembly/bin/initDB.sh @@ -49,7 +49,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 aplus_rule;' sql_result=$? -if [ $need_unset = 1 ]; then +if [ "$need_unset"x == "1"x ]; then unset PGPASSWORD fi |