2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-02-02 12:08:26 +00:00

fix: mysql restore db command with subprocess

This commit is contained in:
Revant Nandgaonkar 2020-07-10 19:45:28 +05:30
parent 21e2b13955
commit 36f150bd95

View File

@ -247,7 +247,7 @@ def restore_mariadb(config, site_config, database_file):
print('Restoring MariaDB')
with open(database_file.replace('.gz', ''), 'r') as db_file:
run_command(mysql_command + [f"{db_name}", "<"], stdin=db_file)
run_command(mysql_command + [f"{db_name}"], stdin=db_file)
def main():