summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2019-12-03 12:49:29 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-12-03 17:34:06 +0100
commit8ecc409bdaac8dde29b64ed6f4b6f1f98fd7ae6b (patch)
treeb5bad279b2d9697829c71d0ef08793a4ec30ca69 /admin/WebConsole
parent0be52457e8f525bcaf4d168b35acbcf157348bd9 (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')
-rw-r--r--admin/WebConsole/comandos/gestores/gestor_Comandos.php3
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);