From f9c624562aa141fe36ff247bd96ad09de2535f1e Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 11 Mar 2024 15:17:03 -0700 Subject: [PATCH] wordpress: Fix minor issue in restoring database - Overlooked in !2454. Tests: - Take a backup of wordpress app and disable it. Restore from the backup succeeds after that. Signed-off-by: Sunil Mohan Adapa --- plinth/modules/wordpress/privileged.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/wordpress/privileged.py b/plinth/modules/wordpress/privileged.py index 32df4ec52..0b5c92f72 100644 --- a/plinth/modules/wordpress/privileged.py +++ b/plinth/modules/wordpress/privileged.py @@ -160,7 +160,7 @@ def restore_database(): subprocess.run(['mysql', '--user', 'root'], stdin=file_handle, check=True) - _set_privileges(DB_HOST, DB_NAME, DB_USER, _read_db_password()) + _set_privileges(DB_HOST, DB_NAME, DB_USER, _read_db_password()) def _read_db_password():