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 <arksine.code@gmail.com>
This commit is contained in:
parent
f745c2ce17
commit
4954cc74cd
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue