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:
parent
21e2b13955
commit
36f150bd95
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user