1
0
mirror of https://github.com/linkedin/oncall.git synced 2025-12-24 02:24:06 +02:00

actually use the mysql port in entrypoint (#360)

* port option from the config was only used in WSGI app until now

Co-authored-by: Michal Zubac <michal.zubac@inuits.eu>
This commit is contained in:
mighq
2021-11-05 18:50:35 +01:00
committed by GitHub
parent e26a01081d
commit 8c94bbbcad

View File

@@ -17,7 +17,7 @@ def load_sqldump(config, sqlfile, one_db=True):
print('Importing %s...' % sqlfile)
with open(sqlfile) as h:
cmd = ['/usr/bin/mysql', '-h', config['host'], '-u',
config['user'], '-p' + config['password']]
config['user'], '-p' + config['password'],'-P' + str(config['port'])]
if one_db:
cmd += ['-o', config['database']]
proc = subprocess.Popen(cmd, stdin=h)