summaryrefslogtreecommitdiff
path: root/lib/Kolab/LDAP/Backend/slurpd.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Kolab/LDAP/Backend/slurpd.pm')
-rw-r--r--lib/Kolab/LDAP/Backend/slurpd.pm11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Kolab/LDAP/Backend/slurpd.pm b/lib/Kolab/LDAP/Backend/slurpd.pm
index 26b83bb..d36c2bb 100644
--- a/lib/Kolab/LDAP/Backend/slurpd.pm
+++ b/lib/Kolab/LDAP/Backend/slurpd.pm
@@ -290,10 +290,13 @@ TRYCONNECT:
exit(0);
}
waitpid($kidpid, 0);
- Kolab::log('SD', "Running $Kolab::config{'kolabconf_script'}");
- system($Kolab::config{'kolabconf_script'}) == 0
- or Kolab::log('SD', "Failed to run $Kolab::config{'kolabconf_script'}: $?", KOLAB_ERROR);
- Kolab::log('SD', "$Kolab::config{'kolabconf_script'} complete");
+
+ if ($Kolab::config{'auto_kolab_conf'}) {
+ Kolab::log('SD', "Running $Kolab::config{'kolabconf_script'}");
+ system($Kolab::config{'kolabconf_script'}) == 0
+ or Kolab::log('SD', "Failed to run $Kolab::config{'kolabconf_script'}: $?", KOLAB_ERROR);
+ Kolab::log('SD', "$Kolab::config{'kolabconf_script'} complete");
+ }
}
}