From 36f150bd95257e7ffdbc25d515b60cda7b759cb4 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Fri, 10 Jul 2020 19:45:28 +0530 Subject: [PATCH] fix: mysql restore db command with subprocess --- build/common/commands/restore_backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/common/commands/restore_backup.py b/build/common/commands/restore_backup.py index 9fa9ef55..7de34367 100644 --- a/build/common/commands/restore_backup.py +++ b/build/common/commands/restore_backup.py @@ -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():