diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2019-12-03 12:49:29 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-12-03 17:34:06 +0100 |
commit | 8ecc409bdaac8dde29b64ed6f4b6f1f98fd7ae6b (patch) | |
tree | b5bad279b2d9697829c71d0ef08793a4ec30ca69 /admin/WebConsole/comandos/gestores/gestor_Comandos.php | |
parent | 0be52457e8f525bcaf4d168b35acbcf157348bd9 (diff) |
#915 Fix WoL command support in queued commands
Irina reports that the Wake on Lan command does not work in queued
commands.
This bug appeared when we fixed duplicated command execution when added
to the queue (ccb862b). It is caused because the client needs to be ON
to ask itself for the queued command, but the WoL command can not work
this way because the client is OFF.
This commit changes the behaviour of gestor_Comandos.php to always send
the WoL command immediately.
Diffstat (limited to 'admin/WebConsole/comandos/gestores/gestor_Comandos.php')
-rw-r--r-- | admin/WebConsole/comandos/gestores/gestor_Comandos.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/WebConsole/comandos/gestores/gestor_Comandos.php b/admin/WebConsole/comandos/gestores/gestor_Comandos.php index 94b48878..b0780f1f 100644 --- a/admin/WebConsole/comandos/gestores/gestor_Comandos.php +++ b/admin/WebConsole/comandos/gestores/gestor_Comandos.php @@ -231,7 +231,8 @@ if($sw_ejya=='on' || $sw_ejprg=="on" ){ $ValorParametros=extrae_parametros($parametros,chr(13),'='); $script=@urldecode($ValorParametros["scp"]); if($sw_ejya=='on'){ - if ($sw_seguimiento == 1 || $sw_ejprg == "on") + if (($sw_seguimiento == 1 || $sw_ejprg == "on") && + $idcomando != OG_CMD_ID_WAKEUP) run_schedule($cadenaip); else run_command($idcomando, $cadenaip, $cadenamac, $atributos); |