From 0cfc2a70fd00da5a6f360e7fda9bf491d858d73c Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Mon, 8 Jul 2024 19:22:23 +0200 Subject: [PATCH] fix: Fix rmmagent version detection on linux --- .../Agent/Task/Inventory/Generic/Remote_Mgmt/TacticalRMM.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/GLPI/Agent/Task/Inventory/Generic/Remote_Mgmt/TacticalRMM.pm b/lib/GLPI/Agent/Task/Inventory/Generic/Remote_Mgmt/TacticalRMM.pm index 383374d31..9189b619a 100644 --- a/lib/GLPI/Agent/Task/Inventory/Generic/Remote_Mgmt/TacticalRMM.pm +++ b/lib/GLPI/Agent/Task/Inventory/Generic/Remote_Mgmt/TacticalRMM.pm @@ -94,7 +94,7 @@ sub _getVersion { my $command = OSNAME eq 'MSWin32' ? '"C:\\Program Files\\TacticalAgent\\tacticalrmm.exe" --version' : - "rmmagent --version"; + canRun("rmmagent") ? "rmmagent --version" : "/usr/loca/bin/rmmagent --version"; return getFirstMatch( command => $command,