mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 10:38:50 -05:00
Allow inline execution of exert without having to specify variable
IE: loads.txt is not being generated correctly on 6.6-rc1
This commit is contained in:
@@ -25,6 +25,7 @@ $folders = ['/boot','/boot/config','/boot/config/plugins','/boot/extra','/boot/s
|
||||
function exert($cmd, &$save=null) {
|
||||
// execute command with timeout of 30s
|
||||
exec("timeout -s9 30 $cmd", $save);
|
||||
return implode("\n",$save);
|
||||
}
|
||||
|
||||
function anonymize($text,$select) {
|
||||
|
||||
Reference in New Issue
Block a user