fix: updated postgres default port
This commit is contained in:
parent
66083cece1
commit
5deec996b6
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ def is_open(ip, port, timeout=10):
|
|||
def check_database():
|
||||
db_type = config.get("db_type", "mariadb")
|
||||
db_host = config.get("db_host", "localhost")
|
||||
db_port = config.get("db_port", 3306 if db_type == "mariadb" else 5342)
|
||||
db_port = config.get("db_port", 3306 if db_type == "mariadb" else 5432)
|
||||
return {db_type: is_open(db_host, db_port)}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue