aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Setup.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-10-23 21:26:24 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-10-24 08:28:06 +0200
commite2139d4b56e6daf1f45c72c1dc0c4ace48d7e9c5 (patch)
treeb945388c39a81d26f64cf6586b1a0a488ec4fa57 /lib/private/Setup.php
parent18601903052e389d7dbc25ff2603eb7091415ca0 (diff)
downloadnextcloud-server-e2139d4b56e6daf1f45c72c1dc0c4ace48d7e9c5.tar.gz
nextcloud-server-e2139d4b56e6daf1f45c72c1dc0c4ace48d7e9c5.zip
Add logrote as a default background job
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Setup.php')
-rw-r--r--lib/private/Setup.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index 5228d52b05f..4e1e4ece62d 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -44,6 +44,7 @@ use Exception;
use OC\App\AppStore\Bundles\BundleFetcher;
use OC\Authentication\Token\DefaultTokenCleanupJob;
use OC\Authentication\Token\DefaultTokenProvider;
+use OC\Log\Rotate;
use OCP\Defaults;
use OCP\IL10N;
use OCP\ILogger;
@@ -426,7 +427,9 @@ class Setup {
}
public static function installBackgroundJobs() {
- \OC::$server->getJobList()->add(DefaultTokenCleanupJob::class);
+ $jobList = \OC::$server->getJobList();
+ $jobList->add(DefaultTokenCleanupJob::class);
+ $jobList->add(Rotate::class);
}
/**