From 7cbdd9b90bcea3566b7d0198f23da3d427e6ef45 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 1 Oct 2015 14:23:25 +0200 Subject: setting to skip migration tests by default * if you install owncloud via package it is not possible to skip migration tests * this also allows to disable migration tests for an instance by default --- core/command/upgrade.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'core/command') diff --git a/core/command/upgrade.php b/core/command/upgrade.php index fa160d9a1c0..f50a0d92479 100644 --- a/core/command/upgrade.php +++ b/core/command/upgrade.php @@ -92,6 +92,12 @@ class Upgrade extends Command { $updateStepEnabled = true; $skip3rdPartyAppsDisable = false; + if ($this->config->getSystemValue('update.skip-migration-test', false)) { + $output->writeln( + '"skip-migration-test" is activated via config.php' + ); + $simulateStepEnabled = false; + } if ($input->getOption('skip-migration-test')) { $simulateStepEnabled = false; } @@ -119,7 +125,7 @@ class Upgrade extends Command { $self = $this; $updater = new Updater(\OC::$server->getHTTPHelper(), - \OC::$server->getConfig()); + $this->config); $updater->setSimulateStepEnabled($simulateStepEnabled); $updater->setUpdateStepEnabled($updateStepEnabled); -- cgit v1.2.3