mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 13:31:27 +00:00
fix: Do not write Roundcube userdata in a migration
This commit is contained in:
parent
0d69ba2656
commit
9fefb984be
|
@ -17,9 +17,6 @@ class AddRoundcube(Migration):
|
|||
with FlakeServiceManager() as manager:
|
||||
if "roundcube" not in manager.services:
|
||||
return True
|
||||
with ReadUserData() as data:
|
||||
if "roundcube" not in data["modules"]:
|
||||
return True
|
||||
return False
|
||||
|
||||
def migrate(self) -> None:
|
||||
|
@ -28,9 +25,3 @@ class AddRoundcube(Migration):
|
|||
manager.services[
|
||||
"roundcube"
|
||||
] = "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/roundcube"
|
||||
with WriteUserData() as data:
|
||||
if "roundcube" not in data["modules"]:
|
||||
data["modules"]["roundcube"] = {
|
||||
"enable": False,
|
||||
"subdomain": "roundcube",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue