summaryrefslogtreecommitdiff
path: root/lib/Kolab/LDAP/Backend/syncrepl.pm
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-04-14 19:19:29 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-04-14 19:19:29 (GMT)
commit758e6927e4b63a82aabd5bb3bb1176dcc5a7c402 (patch)
treeaa2cdaf0165f990afe7cf741e1f843df4339ba4b /lib/Kolab/LDAP/Backend/syncrepl.pm
parent33b02d6feb6659585a08a972c27c6b8aa738933d (diff)
downloadperl-Kolab-758e6927e4b63a82aabd5bb3bb1176dcc5a7c402.tar.gz
Introduce the handling of a new (boolean) setting 'auto_kolab_conf'.
Diffstat (limited to 'lib/Kolab/LDAP/Backend/syncrepl.pm')
-rw-r--r--lib/Kolab/LDAP/Backend/syncrepl.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Kolab/LDAP/Backend/syncrepl.pm b/lib/Kolab/LDAP/Backend/syncrepl.pm
index 5283262..ee84d58 100644
--- a/lib/Kolab/LDAP/Backend/syncrepl.pm
+++ b/lib/Kolab/LDAP/Backend/syncrepl.pm
@@ -243,8 +243,11 @@ sub searchCallback {
Kolab::log('SYNCREPL', "Calling Kolab::LDAP::sync", KOLAB_DEBUG);
Kolab::LDAP::sync;
- system($Kolab::config{'kolabconf_script'}) == 0
- || Kolab::log('SD', "Failed to run kolabconf: $?", KOLAB_ERROR);
+
+ if ($Kolab::config{'auto_kolab_conf'}) {
+ system($Kolab::config{'kolabconf_script'}) == 0
+ || Kolab::log('SD', "Failed to run kolabconf: $?", KOLAB_ERROR);
+ }
Kolab::log('SYNCREPL', "Finished Kolab::LDAP::sync sleeping 1s", KOLAB_DEBUG);
sleep 1; # we get too many bogus change notifications!