fix(services): replace stray gitea reference with a generic identifier in deiable/enable

remove-rest
Houkime 2023-11-22 14:50:53 +00:00
parent f5999516fa
commit 368ab22fbb
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ class Service(ABC):
"""Enable the service. Usually this means enabling systemd unit."""
name = cls.get_id()
with WriteUserData() as user_data:
if "gitea" not in user_data:
if name not in user_data:
user_data[name] = {}
user_data[name]["enable"] = True
@ -154,7 +154,7 @@ class Service(ABC):
"""Disable the service. Usually this means disabling systemd unit."""
name = cls.get_id()
with WriteUserData() as user_data:
if "gitea" not in user_data:
if name not in user_data:
user_data[name] = {}
user_data[name]["enable"] = False