fix: remove old configuration getters/setters

This commit is contained in:
Inex Code 2024-07-23 17:36:30 +03:00
parent 8c52384f16
commit 37b2e0e61a
5 changed files with 0 additions and 41 deletions

View file

@ -103,14 +103,6 @@ class Bitwarden(Service):
def restart():
subprocess.run(["systemctl", "restart", "vaultwarden.service"])
@classmethod
def get_configuration(cls):
return {}
@classmethod
def set_configuration(cls, config_items):
return super().set_configuration(config_items)
@staticmethod
def get_logs():
return ""

View file

@ -97,14 +97,6 @@ class JitsiMeet(Service):
)
subprocess.run(["systemctl", "restart", "jicofo.service"], check=False)
@classmethod
def get_configuration(cls):
return {}
@classmethod
def set_configuration(cls, config_items):
return super().set_configuration(config_items)
@staticmethod
def get_logs():
return ""

View file

@ -89,14 +89,6 @@ class MailServer(Service):
subprocess.run(["systemctl", "restart", "dovecot2.service"], check=False)
subprocess.run(["systemctl", "restart", "postfix.service"], check=False)
@classmethod
def get_configuration(cls):
return {}
@classmethod
def set_configuration(cls, config_items):
return super().set_configuration(config_items)
@staticmethod
def get_logs():
return ""

View file

@ -87,15 +87,6 @@ class Nextcloud(Service):
"""Restart Nextcloud service."""
subprocess.Popen(["systemctl", "restart", "phpfpm-nextcloud.service"])
@classmethod
def get_configuration(cls) -> dict:
"""Return Nextcloud configuration."""
return {}
@classmethod
def set_configuration(cls, config_items):
return super().set_configuration(config_items)
@staticmethod
def get_logs():
"""Return Nextcloud logs."""

View file

@ -92,14 +92,6 @@ class Roundcube(Service):
check=False,
)
@staticmethod
def get_configuration():
return {}
@staticmethod
def set_configuration(config_items):
return super().set_configuration(config_items)
@staticmethod
def get_logs():
return ""