diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-03 16:53:46 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-03 16:53:46 +0100 |
commit | 2ceae43989cdc342f56c3e620b29b76a8825a748 (patch) | |
tree | ca34e135dc0725d2980f5a05c131e9f3c9d00b83 /apps/files/appinfo | |
parent | 1fe7957fd0210c6a3f6ad5c810f1ba5814ff68d6 (diff) | |
parent | 391bc49dabb39e31739c849b83bb490cabf9da3d (diff) | |
download | nextcloud-server-2ceae43989cdc342f56c3e620b29b76a8825a748.tar.gz nextcloud-server-2ceae43989cdc342f56c3e620b29b76a8825a748.zip |
Merge pull request #20545 from owncloud/scan-storage-in-background-job
Move files/ajax/scan.php to background job
Diffstat (limited to 'apps/files/appinfo')
-rw-r--r-- | apps/files/appinfo/info.xml | 2 | ||||
-rw-r--r-- | apps/files/appinfo/install.php | 26 | ||||
-rw-r--r-- | apps/files/appinfo/routes.php | 2 | ||||
-rw-r--r-- | apps/files/appinfo/update.php | 5 |
4 files changed, 32 insertions, 3 deletions
diff --git a/apps/files/appinfo/info.xml b/apps/files/appinfo/info.xml index 4ab226f3968..df12b87397d 100644 --- a/apps/files/appinfo/info.xml +++ b/apps/files/appinfo/info.xml @@ -8,7 +8,7 @@ <shipped>true</shipped> <standalone/> <default_enable/> - <version>1.4.0</version> + <version>1.4.1</version> <types> <filesystem/> </types> diff --git a/apps/files/appinfo/install.php b/apps/files/appinfo/install.php new file mode 100644 index 00000000000..b47bf6ac4b0 --- /dev/null +++ b/apps/files/appinfo/install.php @@ -0,0 +1,26 @@ +<?php +/** + * @author Lukas Reschke <lukas@owncloud.com> + * + * @copyright Copyright (c) 2015, ownCloud, Inc. + * @license AGPL-3.0 + * + * This code is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License, version 3, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License, version 3, + * along with this program. If not, see <http://www.gnu.org/licenses/> + * + */ + +// Cron job for scanning user storages +$jobList = \OC::$server->getJobList(); +$job = 'OCA\Files\BackgroundJob\ScanFiles'; +\OC::$server->getJobList()->add($job); + diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php index 2bb913c30a6..844b73b3c41 100644 --- a/apps/files/appinfo/routes.php +++ b/apps/files/appinfo/routes.php @@ -75,8 +75,6 @@ $this->create('files_ajax_newfolder', 'ajax/newfolder.php') ->actionInclude('files/ajax/newfolder.php'); $this->create('files_ajax_rename', 'ajax/rename.php') ->actionInclude('files/ajax/rename.php'); -$this->create('files_ajax_scan', 'ajax/scan.php') - ->actionInclude('files/ajax/scan.php'); $this->create('files_ajax_upload', 'ajax/upload.php') ->actionInclude('files/ajax/upload.php'); diff --git a/apps/files/appinfo/update.php b/apps/files/appinfo/update.php index 6084435fa5a..d181dff560b 100644 --- a/apps/files/appinfo/update.php +++ b/apps/files/appinfo/update.php @@ -96,6 +96,11 @@ if ($installedVersion === '1.1.9' && ( } } +// Add cron job for scanning user storages +$jobList = \OC::$server->getJobList(); +$job = 'OCA\Files\BackgroundJob\ScanFiles'; +\OC::$server->getJobList()->add($job); + /** * migrate old constant DEBUG to new config value 'debug' * |