diff options
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/appinfo/info.xml | 4 | ||||
-rw-r--r-- | apps/files_trashbin/appinfo/install.php | 23 | ||||
-rw-r--r-- | apps/files_trashbin/appinfo/update.php | 3 |
3 files changed, 4 insertions, 26 deletions
diff --git a/apps/files_trashbin/appinfo/info.xml b/apps/files_trashbin/appinfo/info.xml index 52b00d90ff6..f5c1dcd979b 100644 --- a/apps/files_trashbin/appinfo/info.xml +++ b/apps/files_trashbin/appinfo/info.xml @@ -21,4 +21,8 @@ To prevent a user from running out of disk space, the ownCloud Deleted files app <documentation> <user>user-trashbin</user> </documentation> + + <background-jobs> + <job>OCA\Files_Trashbin\BackgroundJob\ExpireTrash</job> + </background-jobs> </info> diff --git a/apps/files_trashbin/appinfo/install.php b/apps/files_trashbin/appinfo/install.php deleted file mode 100644 index 51b0bdf43c3..00000000000 --- a/apps/files_trashbin/appinfo/install.php +++ /dev/null @@ -1,23 +0,0 @@ -<?php -/** - * @author Victor Dubiniuk <dubiniuk@owncloud.com> - * - * @copyright Copyright (c) 2016, 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 deleting expired trash items -\OC::$server->getJobList()->add('OCA\Files_Trashbin\BackgroundJob\ExpireTrash'); diff --git a/apps/files_trashbin/appinfo/update.php b/apps/files_trashbin/appinfo/update.php index f0c95baeb71..cd839f0c2e0 100644 --- a/apps/files_trashbin/appinfo/update.php +++ b/apps/files_trashbin/appinfo/update.php @@ -39,6 +39,3 @@ if (version_compare($installedVersion, '0.6.4', '<')) { $config->setSystemValue('trashbin_retention_obligation', $newObligation); $config->deleteSystemValue('trashbin_auto_expire'); } - -// Cron job for deleting expired trash items -\OC::$server->getJobList()->add('OCA\Files_Trashbin\BackgroundJob\ExpireTrash'); |