From cff9ca971d1c4db22b51f03c78c32bb3d4953f02 Mon Sep 17 00:00:00 2001 From: MRColor Date: Fri, 13 Dec 2024 15:55:48 +0100 Subject: [PATCH] fix: removed check on exit code for service start only --- utils/helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/helper.py b/utils/helper.py index a896aee..0233390 100644 --- a/utils/helper.py +++ b/utils/helper.py @@ -120,14 +120,14 @@ def setup_service(service_name="docker.binfmt", service_file_path='./.resources/ subprocess.run(["sudo", "cp", service_file_path, systemd_service_file], check=True) subprocess.run(["sudo", "systemctl", "daemon-reload"], check=True) subprocess.run(["sudo", "systemctl", "enable", service_name], check=True) - subprocess.run(["sudo", "systemctl", "start", service_name], check=True) + subprocess.run(["sudo", "systemctl", "start", service_name]) elif os.path.exists("/etc/init.d"): if not os.path.exists(sysv_init_file): logging.info(f"Copying service file to {sysv_init_file}") subprocess.run(["sudo", "cp", service_file_path, sysv_init_file], check=True) subprocess.run(["sudo", "chmod", "+x", sysv_init_file], check=True) subprocess.run(["sudo", "update-rc.d", service_name, "defaults"], check=True) - subprocess.run(["sudo", "service", service_name, "start"], check=True) + subprocess.run(["sudo", "service", service_name, "start"]) logging.info(f"{Fore.GREEN}{service_name} setup and started successfully.{Style.RESET_ALL}")