From c595a7c878347496e022136bb1b2ee35cf4717c4 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Wed, 17 Dec 2008 13:43:55 +0000 Subject: [PATCH] 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 --- gosa-si/modules/GosaSupportDaemon.pm | 6 ++++++ 1 file changed, 6 insertions(+) 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( $@ ) { -- 2.30.2