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

add db_port

parent aa281585
No related branches found
No related tags found
No related merge requests found
...@@ -5,8 +5,9 @@ import utils ...@@ -5,8 +5,9 @@ import utils
def setup(interactive=True): def setup(interactive=True):
db_host = utils.get_conf('DB_HOST') db_host = utils.get_conf('DB_HOST')
if db_host and not db_host.startswith('127') and db_host != 'localhost': db_port = utils.get_conf('DB_PORT')
utils.log('Skipping postgresql setup because the database host is set to "%s".' % db_host) 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 return
cmds = [ cmds = [
'DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql', 'DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql',
......
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