bugfix - accessibility of RESTful APIs
[holmes/engine-management.git] / engine-d-standalone / src / main / assembly / bin / initDB.sh
index 3d2e8bc..dac6878 100644 (file)
@@ -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"x = "1"x ]; then
     unset PGPASSWORD
 fi