diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-10-01 14:23:25 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-10-01 14:23:25 +0200 |
commit | 7cbdd9b90bcea3566b7d0198f23da3d427e6ef45 (patch) | |
tree | effe5dc646cf32b799e49963d24412d5f6ce9420 /core/command | |
parent | 64994facce890e53a50bc75047e502e434c9c749 (diff) | |
download | nextcloud-server-7cbdd9b90bcea3566b7d0198f23da3d427e6ef45.tar.gz nextcloud-server-7cbdd9b90bcea3566b7d0198f23da3d427e6ef45.zip |
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
Diffstat (limited to 'core/command')
-rw-r--r-- | core/command/upgrade.php | 8 |
1 files changed, 7 insertions, 1 deletions
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( + '<info>"skip-migration-test" is activated via config.php</info>' + ); + $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); |