refactor(sys_utils): rename systemctl method and add new one

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2024-05-03 22:20:00 +02:00
parent 5f1e42b88b
commit 799892500a
6 changed files with 43 additions and 24 deletions

View File

@@ -45,7 +45,7 @@ from utils.constants import CURRENT_USER
from utils.git_utils import get_repo_name, get_remote_commit, get_local_commit
from utils.input_utils import get_confirm, get_string_input, get_number_input
from utils.logger import Logger
from utils.sys_utils import control_systemd_service
from utils.sys_utils import cmd_sysctl_service
def get_klipper_status() -> (
@@ -258,7 +258,7 @@ def handle_disruptive_system_packages() -> None:
for service in services if services else []:
try:
control_systemd_service(service, "mask")
cmd_sysctl_service(service, "mask")
except subprocess.CalledProcessError:
warn_msg = textwrap.dedent(
f"""