From 3af536af232fcaaeedb562ce9eabf6b1e6cb1259 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 6 Mar 2008 15:04:25 +0000 Subject: [PATCH] Made install -> reinstall git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9394 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/class_servGeneric.inc | 2 +- .../systems/admin/systems/class_systemManagement.inc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_servGeneric.inc b/gosa-plugins/systems/admin/systems/class_servGeneric.inc index e95e36ef2..5ae7ad312 100644 --- a/gosa-plugins/systems/admin/systems/class_servGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_servGeneric.inc @@ -123,7 +123,7 @@ class servgeneric extends plugin $evt = $events['TRIGGERED']["DaemonEvent_".$action]; $tmp = new $evt['CLASS_NAME']($this->config); $tmp->add_targets(array($this->netConfigDNS->macAddress)); - $tmp->set_type(($action == "reinstall" || $action == "update")?SCHEDULED_EVENT:TRIGGERED_EVENT); + $tmp->set_type(TRIGGERED_EVENT); $o_queue = new gosaSupportDaemon(); if(!$o_queue->append($tmp)){ msg_dialog::display(_("Daemon"),sprintf(_("Something went wrong while talking to the daemon: %s."), diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 33c04ec1c..fdf0fe63b 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -543,7 +543,7 @@ class systems extends plugin */ if(isset($_POST['save_event_dialog']) || $this->systab->get_type() == TRIGGERED_EVENT){ $o_queue = new gosaSupportDaemon(); - $this->systab->set_type(($s_action == "trigger_event_DaemonEvent_reinstall" || $s_action == "trigger_event_DaemonEvent_update")?SCHEDULED_EVENT:TRIGGERED_EVENT); + $this->systab->set_type(TRIGGERED_EVENT); $o_queue->append($this->systab); if($o_queue->is_error()){ msg_dialog::display(_("Daemon"),sprintf(_("Something went wrong while talking to the daemon: %s."), @@ -899,11 +899,11 @@ class systems extends plugin /* Add installation event */ - if(!empty($mac) && isset($events['BY_CLASS']['DaemonEvent_install'])){ - $evt = $events['BY_CLASS']['DaemonEvent_install']; + if(!empty($mac) && isset($events['BY_CLASS']['DaemonEvent_reinstall'])){ + $evt = $events['BY_CLASS']['DaemonEvent_reinstall']; $tmp = new $evt['CLASS_NAME']($this->config); $tmp->add_targets(array($mac)); - $tmp->set_type(TRIGGERED_EVENT); + $tmp->set_type(SCHEDULED_EVENT); $o_queue = new gosaSupportDaemon(); $o_queue->append($tmp); if($o_queue->is_error()){ -- 2.30.2