From: cajus Date: Wed, 30 Jan 2008 09:24:04 +0000 (+0000) Subject: Added activation signals X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f7d4d77afe44013febc765af6569fda7deceaf31;p=gosa.git Added activation signals git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8652 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_servGeneric.inc b/gosa-plugins/systems/admin/systems/class_servGeneric.inc index 91eec6805..07b7bfa82 100644 --- a/gosa-plugins/systems/admin/systems/class_servGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_servGeneric.inc @@ -324,6 +324,12 @@ class servgeneric extends plugin /* Save to LDAP */ function save() { + /* Detect mode changes */ + $activate= (isset($this->saved_attributes['gotoMode']) && + $this->gotoMode != $this->saved_attributes['gotoMode'] && + $this->gotoMode == "active" && + tests::is_ip($this->netConfigDNS->ipHostNumber)); + plugin::save(); /* Remove all empty values */ @@ -377,6 +383,11 @@ class servgeneric extends plugin if(!$this->didAction){ $this->handle_post_events($mode,array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber)); } + + if ($activate){ + gosaSupportDaemon::send("gosa_set_activated_for_installation", $this->netConfigDNS->ipHostNumber); + } + }