Skip to content
Snippets Groups Projects
Commit 28adbe8e authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fix db_port

parent efa3babe
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ import utils
def setup(interactive=True):
db_host = utils.get_conf('DB_HOST')
db_port = utils.get_conf('DB_PORT')
db_port = utils.get_conf('DB_PORT') or 5432
if (db_host and not db_host.startswith('127') and db_host != 'localhost') or db_port != 5432:
utils.log('Skipping postgresql setup because the database host is set to "%s:%i".' % (db_host, db_port))
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment