From: rettenbe Date: Wed, 17 Dec 2008 13:43:55 +0000 (+0000) Subject: disabled opsi module in config file will not be imported into gosa-si-server X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c595a7c878347496e022136bb1b2ee35cf4717c4;p=gosa.git disabled opsi module in config file will not be imported into gosa-si-server git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13307 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/GosaSupportDaemon.pm b/gosa-si/modules/GosaSupportDaemon.pm index 9e7062472..d6aafa43f 100644 --- a/gosa-si/modules/GosaSupportDaemon.pm +++ b/gosa-si/modules/GosaSupportDaemon.pm @@ -526,6 +526,12 @@ sub import_events { while (defined (my $event = readdir ($DIR))) { if( $event eq "." || $event eq ".." ) { next; } + # Check config file to exclude disabled event plugins (i.e. Opsi) + if ($event eq "opsi_com.pm" && $main::opsi_enabled ne "true") { + &main::daemon_log("WARNING: opsi-module is installed but not enabled in config file, please set under section '[OPSI]': 'enabled=true'", 3); + next; + } + # try to import event module eval{ require $event; }; if( $@ ) {