summaryrefslogtreecommitdiffstats
path: root/lib/private/Updater.php
Commit message (Collapse)AuthorAgeFilesLines
* Do not print verbose info about app updates if there are noneChristoph Wurst2021-11-221-2/+2
| | | | | | | | | | | This is cosmetical but if you have a large number of apps installed then you'll see a wall of text during the server and app upgrade when it tries to update each app via the app store. In may cases nothing will be updated. For those boring cases we can hide the verbose info, but show when occ is run with -v. Any actual update will still print a few lines. Those are the important ones for the admin. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix updating with appsJoas Schilling2021-11-111-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix app upgradeJoas Schilling2021-10-191-8/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Keep group restrictions when reenabling apps after an updateJoas Schilling2021-10-131-4/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #25034 from ↵Morris Jobke2021-01-111-2/+2
|\ | | | | | | | | nextcloud/bugfix/noid/load-authentication-for-app-upgrades Make sure to do priority app upgrades first
| * Make sure to do priority app upgrades firstJulius Härtl2021-01-081-2/+2
| | | | | | | | | | | | | | | | Otherwise those apps might not be loaded when the others app migrations are running. The previous loading of authentication apps in the upgrade step never worked as it just returns in maintenance mode Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-1/+2
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make sure the migrations table schema is always checkedJulius Härtl2020-12-091-0/+1
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Revert "Make sure the migrations table schema is always checked" This reverts commit 258955ef738a52d9da2ac2fe59466e6093d7e9bc. Set current vendor during upgrade and perform migrations table change if needed Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Allow major/minor match for owncloud versionJulius Härtl2020-12-091-1/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not update incompatible appsChristoph Wurst2020-12-041-1/+1
| | | | | | | | | | Previously there was no (platform) dependency check for an app that was installed before. So Nextcloud happily upgraded an app that now requires a php version newer than the current one. Which means in the lucky case you see a failing upgrade due to the language incompatibility, or in the unlucky case you see unexpected errors later in production. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove dead method \OC\Updater::checkAppUpgradeChristoph Wurst2020-11-261-41/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-291-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-9/+7
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-20/+20
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-9/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make the auto-disabled list more broadJoas Schilling2019-08-151-10/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix tracking of auto disabled apps in UpdaterGeorg Ehrke2019-08-151-1/+10
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Block install without CAN_INSTALL fileRoeland Jago Douma2019-04-111-0/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make sure maintenance mode is always casted to boolJoas Schilling2019-02-221-2/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Revert "Wait for cron to finish before running upgrade command"Morris Jobke2018-11-011-19/+8
| | | | | | This reverts commit 18e9631810ad1d3d72c2b4bbee330169808108ad. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8380 from nextcloud/bugfix/noid/reenable-disabled-appsMorris Jobke2018-07-251-1/+8
|\ | | | | Re-enable apps that got automatically disabled while updating
| * Re-enable apps that got automatically disabled while updatingJoas Schilling2018-06-261-1/+8
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Only wait for cron if fix for endless wait is includedMorris Jobke2018-07-091-2/+6
|/ | | | | | * see https://github.com/nextcloud/server/issues/9992 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Wait for cron to finish before running upgrade commandMorris Jobke2018-06-191-8/+16
| | | | | | * fixes #9562 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* move log constants to ILoggerArthur Schiwon2018-04-261-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Do not fail hard if no appinfo is returned during updateJulius Härtl2018-03-281-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove OC_App::disable methodTobia De Koninck2018-03-061-1/+1
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Fix updating an upChristoph Wurst2018-02-191-1/+1
| | | | | | | | OC_App has been made strict recently and the updater code was not compatible to this. This adds the array to string conversion of the Nextcloud version and fixes a typo in OC_App (sstring -> string) Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* OC_App::loadApps now only accepts an array as type listMorris Jobke2018-02-171-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Disable vendor detection when upgrading from 11.0.xMorris Jobke2018-01-201-10/+2
| | | | | | Upgrade from 11 to 14 is not supported anyways. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove not needed 3rdparty app disabling during upgrade for PHP 5.xMorris Jobke2018-01-191-29/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make isUpdateAvailable non-staticMorris Jobke2017-11-251-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Get the Installer via DIMorris Jobke2017-11-251-9/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use the existing array of OC versionsJoas Schilling2017-08-071-3/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use public methods for OC_App::isShippedMorris Jobke2017-08-011-3/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add migration for personal settings stuffJoas Schilling2017-07-051-4/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Start migrationsJoas Schilling2017-07-051-2/+6
| | | | | | | | | | Fixme: - Install and update of apps - No revert on live systems (debug only) - Service adjustment to our interface - Loading via autoloader Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix updating from some 11 versions when people didn't updateJoas Schilling2017-05-181-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow migrating from ownCloud 10.0.0Joas Schilling2017-05-181-1/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Proper logging for appstore updatesMorris Jobke2017-05-111-1/+9
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Automatic injection into the FetchersJoas Schilling2017-05-101-1/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure the AppFetcher fetches the new applist from the appstoreRoeland Jago Douma2017-05-021-0/+4
| | | | | | | | When in the upgrade process the version in the config is still the old version. (Since we only upgrade it after the upgrade is complete). However the app list fetched from the appstore must be the new list. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add app bundlesLukas Reschke2017-04-261-3/+4
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Do not double cherck app updateMorris Jobke2017-03-131-1/+1
| | | | | | | In base.php the apps are already checked for an update. No need to repeat this during loading of the app. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix return value of getAllowedPreviousVersions()Morris Jobke2017-02-091-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Prevent migration from ownCloud 11 to Nextcloud 12Joas Schilling2017-01-231-20/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't disable apps on update if PHP >= 7.0.0Lukas Reschke2016-12-151-0/+6
| | | | | | | | When PHP in a version higher than 7.0.0 is used we catch fatal exceptions in app.php and gracefully already disable the app. There is thus no need to also disable the apps on updates. This has been requested by Jan to fix because that is "the most annoying thing ever" :TM:. – I'd say we give it a try and if that causes problems in the future we can consider alternative approaches. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>