diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-09-25 12:04:11 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-12-09 12:13:33 +0100 |
commit | 2607ac3fb247d879607434a7afaf259e73d96bc0 (patch) | |
tree | c1e5e64da20244f1d581a521bd63c0e0f44eb793 /lib/private/Updater.php | |
parent | f5501ca2764caae5c0f53949c47ded4ba8ad3c17 (diff) | |
download | nextcloud-server-2607ac3fb247d879607434a7afaf259e73d96bc0.tar.gz nextcloud-server-2607ac3fb247d879607434a7afaf259e73d96bc0.zip |
Allow major/minor match for owncloud version
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r-- | lib/private/Updater.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php index b9b72dd7fa4..44f99c9e8c7 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -192,7 +192,10 @@ 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 === '' && isset($allowedPreviousVersions['owncloud'][$oldVersion])) { + if ($currentVendor === '' && ( + isset($allowedPreviousVersions['owncloud'][$oldVersion]) || + isset($allowedPreviousVersions['owncloud'][$majorMinor]) + )) { $currentVendor = 'owncloud'; } |