mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +00:00
fix: add location to monitoring migration
This commit is contained in:
parent
e9cecd6789
commit
7fd97fe0b2
|
@ -2,6 +2,7 @@ from selfprivacy_api.migrations.migration import Migration
|
||||||
|
|
||||||
from selfprivacy_api.services.flake_service_manager import FlakeServiceManager
|
from selfprivacy_api.services.flake_service_manager import FlakeServiceManager
|
||||||
from selfprivacy_api.utils import ReadUserData, WriteUserData
|
from selfprivacy_api.utils import ReadUserData, WriteUserData
|
||||||
|
from selfprivacy_api.utils.block_devices import BlockDevices
|
||||||
|
|
||||||
|
|
||||||
class AddMonitoring(Migration):
|
class AddMonitoring(Migration):
|
||||||
|
@ -31,5 +32,6 @@ class AddMonitoring(Migration):
|
||||||
with WriteUserData() as data:
|
with WriteUserData() as data:
|
||||||
if "monitoring" not in data["modules"]:
|
if "monitoring" not in data["modules"]:
|
||||||
data["modules"]["monitoring"] = {
|
data["modules"]["monitoring"] = {
|
||||||
"enable": True
|
"enable": True,
|
||||||
|
"location": BlockDevices().get_root_block_device().name
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue