From: cajus Date: Fri, 15 Feb 2008 16:07:35 +0000 (+0000) Subject: Moved reinstall and update to the jobs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=40e8e3fc45cbe1b355d66f3bd50ca33dd639033a;p=gosa.git Moved reinstall and update to the jobs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8935 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc index 9a1b6d401..24b1b5ac3 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc @@ -167,7 +167,13 @@ class termgeneric extends plugin } if (isset($_POST['action']) && $this->acl_is_writeable("FAIstate") && isset($this->mapActions[$_POST['saction']])){ - gosaSupportDaemon::send("gosa_trigger_action_".$_POST['saction'], $this->netConfigDNS->macAddress, array("macAddress" => $this->netConfigDNS->macAddress)); + $method= "gosa"; + $action= $_POST['saction']; + if ($action == "reinstall" || $action == "softupdate"){ + $method= "job"; + } + gosaSupportDaemon::send("${method}_trigger_action_".$action, $this->netConfigDNS->macAddress, array("macAddress" => $t +his->netConfigDNS->macAddress)); } /* Base select dialog */ diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc index e201dd3dd..2595d495a 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc @@ -182,9 +182,14 @@ class workgeneric extends plugin } if ((isset($_POST['action'])) && ($this->acl_is_writeable("FAIstate")) && isset($this->mapActions[$_POST['saction']]) ){ - gosaSupportDaemon::send("gosa_trigger_action_".$_POST['saction'], $this->netConfigDNS->macAddress, array("macAddress" => $this->netConfigDNS->macAddress)); - - if ($_POST['saction'] != "wake") { + $method= "gosa"; + $action= $_POST['saction']; + if ($action == "reinstall" || $action == "update"){ + $method= "job"; + } + gosaSupportDaemon::send("${method}_trigger_action_".$action, $this->netConfigDNS->macAddress, array("macAddress" => $this->netConfigDNS->macAddress)); + + if ($action != "wake") { /* Set FAIstate */ if($this->fai_activated && $this->dn != "new"){