mirror of
https://github.com/unraid/webgui.git
synced 2026-05-04 16:59:27 -05:00
[plugin] Include the actual command, being executed
This commit is contained in:
@@ -464,10 +464,10 @@ function plugin($method, $plugin_file, &$error) {
|
||||
if ($file->attributes()->Run) {
|
||||
$command = $file->attributes()->Run;
|
||||
if ($name) {
|
||||
logger("plugin: running: $name");
|
||||
logger(escapeshellarg("plugin: running: $command $name"));
|
||||
$retval = run("$command $name");
|
||||
} elseif ($file->LOCAL) {
|
||||
logger("plugin: running: $file->LOCAL");
|
||||
logger(escapeshellarg("plugin: running: $command $file->LOCAL"));
|
||||
$retval = run("$command $file->LOCAL");
|
||||
} elseif ($file->INLINE) {
|
||||
logger("plugin: running: 'anonymous'");
|
||||
|
||||
Reference in New Issue
Block a user