mirror of
https://github.com/thomas-krenn/check_lsi_raid.git
synced 2026-02-26 05:38:41 +01:00
Only add sudo if not already root
This commit is contained in:
@@ -1245,7 +1245,9 @@ MAIN: {
|
||||
print "Error: cannot find sudo executable.\n";
|
||||
exit(STATE_UNKNOWN);
|
||||
}
|
||||
$storcli = $sudo.' '.$storcli;
|
||||
if($> != 0){
|
||||
$storcli = $sudo.' '.$storcli;
|
||||
}
|
||||
}
|
||||
}
|
||||
# Print storcli version if available
|
||||
|
||||
Reference in New Issue
Block a user