mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-25 16:53:36 +05:00
refactor: replace usage of instance manager method with cmd_sysctl_manage function
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -17,6 +17,7 @@ from core.instance_manager.instance_manager import InstanceManager
|
||||
from utils.fs_utils import remove_file
|
||||
from utils.input_utils import get_selection_input
|
||||
from utils.logger import Logger
|
||||
from utils.sys_utils import cmd_sysctl_manage
|
||||
|
||||
|
||||
def run_klipper_removal(
|
||||
@@ -92,7 +93,7 @@ def remove_instances(
|
||||
instance_manager.disable_instance()
|
||||
instance_manager.delete_instance()
|
||||
|
||||
instance_manager.reload_daemon()
|
||||
cmd_sysctl_manage("daemon-reload")
|
||||
|
||||
|
||||
def remove_klipper_dir() -> None:
|
||||
|
||||
@@ -41,6 +41,7 @@ from utils.git_utils import git_clone_wrapper, git_pull_wrapper
|
||||
from utils.input_utils import get_confirm
|
||||
from utils.logger import Logger
|
||||
from utils.sys_utils import (
|
||||
cmd_sysctl_manage,
|
||||
create_python_venv,
|
||||
install_python_requirements,
|
||||
parse_packages_from_file,
|
||||
@@ -92,7 +93,7 @@ def install_klipper() -> None:
|
||||
if count == install_count:
|
||||
break
|
||||
|
||||
kl_im.reload_daemon()
|
||||
cmd_sysctl_manage("daemon-reload")
|
||||
|
||||
except Exception as e:
|
||||
Logger.print_error(e)
|
||||
|
||||
@@ -18,6 +18,7 @@ from core.instance_manager.instance_manager import InstanceManager
|
||||
from utils.fs_utils import remove_file
|
||||
from utils.input_utils import get_selection_input
|
||||
from utils.logger import Logger
|
||||
from utils.sys_utils import cmd_sysctl_manage
|
||||
|
||||
|
||||
def run_moonraker_removal(
|
||||
@@ -98,7 +99,7 @@ def remove_instances(
|
||||
instance_manager.disable_instance()
|
||||
instance_manager.delete_instance()
|
||||
|
||||
instance_manager.reload_daemon()
|
||||
cmd_sysctl_manage("daemon-reload")
|
||||
|
||||
|
||||
def remove_moonraker_dir() -> None:
|
||||
|
||||
@@ -44,6 +44,7 @@ from utils.input_utils import (
|
||||
from utils.logger import Logger
|
||||
from utils.sys_utils import (
|
||||
check_python_version,
|
||||
cmd_sysctl_manage,
|
||||
create_python_venv,
|
||||
install_python_requirements,
|
||||
parse_packages_from_file,
|
||||
@@ -110,7 +111,7 @@ def install_moonraker() -> None:
|
||||
|
||||
mr_im.start_instance()
|
||||
|
||||
mr_im.reload_daemon()
|
||||
cmd_sysctl_manage("daemon-reload")
|
||||
|
||||
# if mainsail is installed, and we installed
|
||||
# multiple moonraker instances, we enable mainsails remote mode
|
||||
|
||||
Reference in New Issue
Block a user