summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-23 17:58:46 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-23 17:58:46 +0200
commit78da57466fad7abc2b14b4558c0ac00623a34e87 (patch)
tree6617e68bd285ac82e2aac83f353ba81504ff3651 /lib
parentbd87f6747376063b05ad5f1f7ce12446dddd5697 (diff)
downloadnextcloud-server-78da57466fad7abc2b14b4558c0ac00623a34e87.tar.gz
nextcloud-server-78da57466fad7abc2b14b4558c0ac00623a34e87.zip
Add the background jobs after the table was updated
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Updater.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index dbcaccaad26..88d785303dc 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -216,8 +216,6 @@ class Updater extends BasicEmitter {
try {
Setup::updateHtaccess();
Setup::protectDataDirectory();
- // TODO: replace with the new repair step mechanism https://github.com/owncloud/core/pull/24378
- Setup::installBackgroundJobs();
} catch (\Exception $e) {
throw new \Exception($e->getMessage());
}
@@ -243,6 +241,13 @@ class Updater extends BasicEmitter {
if ($this->updateStepEnabled) {
$this->doCoreUpgrade();
+ try {
+ // TODO: replace with the new repair step mechanism https://github.com/owncloud/core/pull/24378
+ Setup::installBackgroundJobs();
+ } catch (\Exception $e) {
+ throw new \Exception($e->getMessage());
+ }
+
// update all shipped apps
$disabledApps = $this->checkAppsRequirements();
$this->doAppUpgrade();