aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Updater.php
Commit message (Collapse)AuthorAgeFilesLines
* Do not print verbose info about app updates if there are noneChristoph Wurst2021-11-181-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-151-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>
* Remove dead codeJoas Schilling2021-09-301-17/+2
| | | | | | | | - Return was always an empty array - Return was not used by the one place that called the method - the continue can be removed as there is nothing else done inside the loop Signed-off-by: Joas Schilling <coding@schilljs.com>
* Migrate HintException to OCPGary Kim2021-06-301-0/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #26758 from J0WI/more-strictChristoph Wurst2021-04-281-12/+15
|\ | | | | Some more strict_types
| * Some more strict_typesJ0WI2021-04-261-12/+15
| | | | | | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | Less ILoggerJoas Schilling2021-04-271-12/+15
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove event listener to udpate events that are not present anymoreMorris Jobke2021-03-251-12/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* log full expection during repair stepRobin Appelman2021-03-181-2/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>