summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/appinfo
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions/appinfo')
-rw-r--r--apps/files_versions/appinfo/info.xml4
-rw-r--r--apps/files_versions/appinfo/install.php23
-rw-r--r--apps/files_versions/appinfo/update.php23
3 files changed, 4 insertions, 46 deletions
diff --git a/apps/files_versions/appinfo/info.xml b/apps/files_versions/appinfo/info.xml
index c70e58a12b2..03aa308bdb1 100644
--- a/apps/files_versions/appinfo/info.xml
+++ b/apps/files_versions/appinfo/info.xml
@@ -21,4 +21,8 @@ In addition to the expiry of versions, ownCloud’s versions app makes certain n
<user>user-versions</user>
</documentation>
<default_enable/>
+
+ <background-jobs>
+ <job>OCA\Files_Versions\BackgroundJob\ExpireVersions</job>
+ </background-jobs>
</info>
diff --git a/apps/files_versions/appinfo/install.php b/apps/files_versions/appinfo/install.php
deleted file mode 100644
index 81ff6337aa0..00000000000
--- a/apps/files_versions/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_Versions\BackgroundJob\ExpireVersions');
diff --git a/apps/files_versions/appinfo/update.php b/apps/files_versions/appinfo/update.php
deleted file mode 100644
index 09ac6ce8a2f..00000000000
--- a/apps/files_versions/appinfo/update.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_Versions\BackgroundJob\ExpireVersions');