From 4954cc74cd8ce1688811fe3e6c5ab96d2c21e850 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Wed, 19 Oct 2022 06:21:18 -0400 Subject: [PATCH] machine: change sudo folder access test The previous "/lost+found" is not available on all systems. Change to "/root", which should be available. Signed-off-by: Eric Callahan --- moonraker/components/machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/components/machine.py b/moonraker/components/machine.py index a75a43b..4ea0de5 100644 --- a/moonraker/components/machine.py +++ b/moonraker/components/machine.py @@ -390,7 +390,7 @@ class Machine: async def check_sudo_access(self, cmds: List[str] = []) -> bool: if not cmds: - cmds = ["systemctl --version", "ls /lost+found"] + cmds = ["systemctl --version", "ls /root"] shell_cmd: SCMDComp = self.server.lookup_component("shell_command") for cmd in cmds: try: