Browse Source

Disable vendor detection when upgrading from 11.0.x

Upgrade from 11 to 14 is not supported anyways.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/7956/head
Morris Jobke 8 years ago
committed by Roeland Jago Douma
parent
commit
80a36380fc
No known key found for this signature in database GPG Key ID: F941078878347C0C
  1. 12
      lib/private/Updater.php

12
lib/private/Updater.php

@ -182,16 +182,8 @@ class Updater extends BasicEmitter {
$currentVendor = $this->config->getAppValue('core', 'vendor', '');
// Vendor was not set correctly on install, so we have to white-list known versions
if ($currentVendor === '') {
if (in_array($oldVersion, [
'11.0.2.7',
'11.0.1.2',
'11.0.0.10',
], true)) {
$currentVendor = 'nextcloud';
} else if (isset($allowedPreviousVersions['owncloud'][$oldVersion])) {
$currentVendor = 'owncloud';
}
if ($currentVendor === '' && isset($allowedPreviousVersions['owncloud'][$oldVersion])) {
$currentVendor = 'owncloud';
}
if ($currentVendor === 'nextcloud') {

Loading…
Cancel
Save