You've already forked oncall
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user