From 54f96e5f58d0e5f7239e7274ac239fec807fa206 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 2 Jan 2017 16:16:15 +0100 Subject: Get the logfile location while running the logrotate cron job instead of when registering the job Signed-off-by: Robin Appelman --- lib/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/base.php') diff --git a/lib/base.php b/lib/base.php index 4a9158eff64..dd0918e7c4c 100644 --- a/lib/base.php +++ b/lib/base.php @@ -881,7 +881,7 @@ class OC { if ($systemConfig->getValue('installed', false) && $systemConfig->getValue('log_rotate_size', false) && !self::checkUpgrade(false)) { //don't try to do this before we are properly setup //use custom logfile path if defined, otherwise use default of nextcloud.log in data directory - \OCP\BackgroundJob::registerJob('OC\Log\Rotate', $systemConfig->getValue('logfile', $systemConfig->getValue('datadirectory', OC::$SERVERROOT . '/data') . '/nextcloud.log')); + \OC::$server->getJobList()->add('OC\Log\Rotate'); } } -- cgit v1.2.3