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 <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2024-03-11 15:17:03 -07:00
parent 5dbf890881
commit f9c624562a
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -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():