From: hickert Date: Wed, 17 Dec 2008 14:45:09 +0000 (+0000) Subject: Updated system Management X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d55ddb7746e9ed0efa2beb7af322797578348572;p=gosa.git Updated system Management -Opsi activation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13308 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index be351017d..a10d254e9 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -989,8 +989,15 @@ class systems extends plugin $this->systab->save(); /* Post handling for activated systems + target opsi -> Remove source. + target gosa -> Activate system. */ - if(isset($this->systab->was_activated) && $this->systab->was_activated){ + if($this->systab instanceOf opsi_tabs && $this->systab->was_activated){ + $ldap = $this->config->get_ldap_link(); + $ldap->cd($this->config->current['BASE']); + $ldap->rmdir ($this->systab->dn); + @DEBUG(DEBUG_LDAP,__LINE__, __FUNCTION__, __FILE__,"Source removed: ".$this->systab->dn,"Opsi host activated."); + }elseif(isset($this->systab->was_activated) && $this->systab->was_activated){ $this->activate_new_device($this->systab->dn); }