diff --git a/2.Common_services/3.PostgreSQL/0_setup.py b/2.Common_services/3.PostgreSQL/0_setup.py index 4d22bf3ef7f65c81a3cd4f57407d55cc9a587b65..1139263bc7ac1a9d42d4e36b4c84e6568a31e20c 100644 --- a/2.Common_services/3.PostgreSQL/0_setup.py +++ b/2.Common_services/3.PostgreSQL/0_setup.py @@ -5,9 +5,9 @@ import utils def setup(interactive=True): db_host = utils.get_conf('DB_HOST') - 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)) + 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:%s".' % (db_host, db_port)) return cmds = [ 'DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql',