mirror of
https://github.com/unraid/webgui.git
synced 2026-05-01 15:29:20 -05:00
Merge pull request #890 from limetech/eschultz-patch-1
Diagnostics: include unraid-api report
This commit is contained in:
@@ -352,6 +352,11 @@ if (file_exists($vfiopci)) {
|
||||
$log = "/$diag/logs/vfio-pci.txt";
|
||||
exert("todos <$vfiopci >".escapeshellarg($log));
|
||||
}
|
||||
// generate unraid-api.txt
|
||||
if (file_exists("/usr/local/sbin/unraid-api")) {
|
||||
$log = "/$diag/system/unraid-api.txt";
|
||||
exert("unraid-api report | todos >".escapeshellarg($log));
|
||||
}
|
||||
// create resulting zip file and remove temp folder
|
||||
exert("zip -qmr ".escapeshellarg($zip)." ".escapeshellarg("/$diag"));
|
||||
if ($cli) {
|
||||
|
||||
Reference in New Issue
Block a user