mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
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:
parent
5dbf890881
commit
f9c624562a
@ -160,7 +160,7 @@ def restore_database():
|
|||||||
subprocess.run(['mysql', '--user', 'root'], stdin=file_handle,
|
subprocess.run(['mysql', '--user', 'root'], stdin=file_handle,
|
||||||
check=True)
|
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():
|
def _read_db_password():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user