Move registration of LDAP background jobs to the install and update
This commit is contained in:
parent
f97359706a
commit
cea8cc73c8
|
@ -59,9 +59,6 @@ if(count($configPrefixes) > 0) {
|
||||||
OC_Group::useBackend($groupBackend);
|
OC_Group::useBackend($groupBackend);
|
||||||
}
|
}
|
||||||
|
|
||||||
OCP\Backgroundjob::registerJob('OCA\user_ldap\lib\Jobs');
|
|
||||||
OCP\Backgroundjob::registerJob('\OCA\User_LDAP\Jobs\CleanUp');
|
|
||||||
|
|
||||||
\OCP\Util::connectHook(
|
\OCP\Util::connectHook(
|
||||||
'\OCA\Files_Sharing\API\Server2Server',
|
'\OCA\Files_Sharing\API\Server2Server',
|
||||||
'preLoginNameUsedAsUserName',
|
'preLoginNameUsedAsUserName',
|
||||||
|
|
|
@ -23,3 +23,6 @@ $state = OCP\Config::getSystemValue('ldapIgnoreNamingRules', 'doSet');
|
||||||
if($state === 'doSet') {
|
if($state === 'doSet') {
|
||||||
OCP\Config::setSystemValue('ldapIgnoreNamingRules', false);
|
OCP\Config::setSystemValue('ldapIgnoreNamingRules', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OCP\Backgroundjob::registerJob('OCA\user_ldap\lib\Jobs');
|
||||||
|
OCP\Backgroundjob::registerJob('\OCA\User_LDAP\Jobs\CleanUp');
|
||||||
|
|
|
@ -34,3 +34,6 @@ if(version_compare($installedVersion, '0.6.2', '<')) {
|
||||||
\OC::$server->getConfig()->deleteAppValue('user_ldap', $prefix . "ldap_nocase");
|
\OC::$server->getConfig()->deleteAppValue('user_ldap', $prefix . "ldap_nocase");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OCP\Backgroundjob::registerJob('OCA\user_ldap\lib\Jobs');
|
||||||
|
OCP\Backgroundjob::registerJob('\OCA\User_LDAP\Jobs\CleanUp');
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
0.6.2
|
0.6.3
|
||||||
|
|
Loading…
Reference in New Issue