mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-26 05:51:29 +00:00
fix(services): replace stray gitea reference with a generic identifier in deiable/enable
This commit is contained in:
parent
f5999516fa
commit
368ab22fbb
|
@ -145,7 +145,7 @@ class Service(ABC):
|
||||||
"""Enable the service. Usually this means enabling systemd unit."""
|
"""Enable the service. Usually this means enabling systemd unit."""
|
||||||
name = cls.get_id()
|
name = cls.get_id()
|
||||||
with WriteUserData() as user_data:
|
with WriteUserData() as user_data:
|
||||||
if "gitea" not in user_data:
|
if name not in user_data:
|
||||||
user_data[name] = {}
|
user_data[name] = {}
|
||||||
user_data[name]["enable"] = True
|
user_data[name]["enable"] = True
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ class Service(ABC):
|
||||||
"""Disable the service. Usually this means disabling systemd unit."""
|
"""Disable the service. Usually this means disabling systemd unit."""
|
||||||
name = cls.get_id()
|
name = cls.get_id()
|
||||||
with WriteUserData() as user_data:
|
with WriteUserData() as user_data:
|
||||||
if "gitea" not in user_data:
|
if name not in user_data:
|
||||||
user_data[name] = {}
|
user_data[name] = {}
|
||||||
user_data[name]["enable"] = False
|
user_data[name]["enable"] = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue