Move registration of LDAP background jobs to the install and update

This commit is contained in:
Joas Schilling 2015-09-02 19:18:05 +02:00
parent f97359706a
commit cea8cc73c8
4 changed files with 7 additions and 4 deletions

View File

@ -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',

View File

@ -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');

View File

@ -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');

View File

@ -1 +1 @@
0.6.2 0.6.3