mirror of
https://github.com/unraid/webgui.git
synced 2026-01-02 07:30:06 -06:00
Update diagnostics
This commit is contained in:
@@ -49,12 +49,11 @@ function write(...$messages){
|
||||
}
|
||||
|
||||
function run($cmd, &$save=null, $timeout=30) {
|
||||
global $cli,$diag;
|
||||
// output command for display
|
||||
write($cmd);
|
||||
// execute command with timeout of 30s
|
||||
exec("LC_ALL=en_US.UTF-8 timeout -s9 $timeout $cmd", $save);
|
||||
return implode("\n",$save);
|
||||
return implode("\n", $save);
|
||||
}
|
||||
|
||||
function newline($file) {
|
||||
|
||||
Reference in New Issue
Block a user