mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-23 17:26:46 +00:00
Fix postgresql not being migrated during migration to binds
This commit is contained in:
parent
807df0c1cc
commit
cd5ae80931
|
@ -1,6 +1,5 @@
|
||||||
"""Function to perform migration of app data to binds."""
|
"""Function to perform migration of app data to binds."""
|
||||||
import subprocess
|
import subprocess
|
||||||
import psutil
|
|
||||||
import pathlib
|
import pathlib
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
@ -263,6 +262,13 @@ def migrate_to_binds(config: BindMigrationConfig, job: Job):
|
||||||
group="pleroma",
|
group="pleroma",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
move_folder(
|
||||||
|
data_path=pathlib.Path("/var/lib/postgresql"),
|
||||||
|
bind_path=pathlib.Path(f"/volumes/{config.pleroma_block_device}/postgresql"),
|
||||||
|
user="postgres",
|
||||||
|
group="postgres",
|
||||||
|
)
|
||||||
|
|
||||||
Pleroma().start()
|
Pleroma().start()
|
||||||
|
|
||||||
Jobs.update(
|
Jobs.update(
|
||||||
|
|
Loading…
Reference in a new issue