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/ajax/update.php | |
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/ajax/update.php')
-rw-r--r-- | core/ajax/update.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index ff18d2bc04b..11d159f15d1 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -41,12 +41,21 @@ if (OC::checkUpgrade(false)) { // avoid side effects \OC_User::setIncognitoMode(true); + + $logger = \OC::$server->getLogger(); + $config = \OC::$server->getConfig(); $updater = new \OC\Updater( \OC::$server->getHTTPHelper(), - \OC::$server->getConfig(), + $config, $logger ); + + if ($config->getSystemValue('update.skip-migration-test', false)) { + $eventSource->send('success', (string)$l->t('Migration tests are skipped - "update.skip-migration-test" is activated in config.php')); + $updater->setSimulateStepEnabled(false); + } + $incompatibleApps = []; $disabledThirdPartyApps = []; |