aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Updater.php
Commit message (Collapse)AuthorAgeFilesLines
* chore(legacy): Introduce public version ct plass and drop version methods ↵clean/version-ocpJulius Knorr2024-09-201-2/+4
| | | | | | from OC_Util Signed-off-by: Julius Knorr <jus@bitgrid.net>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-11/+11
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(SetupCheck): Properly check public access to data directoryFerdinand Thiessen2024-08-081-2/+5
| | | | | | | | | | | | | When checking for public (web) access to the data directory the status is not enough as you might have a webserver that forwards to e.g. a login page. So instead check that the content of the file matches. For this the `.ncdata` file (renamed from `.ocdata`¹) has minimal text content to allow checking. ¹The file was renamed from the legacy `.ocdata`, there is a repair step to remove the old one. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-34/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(updatenotification): spread the use of new appconfigMaxence Lange2024-03-131-22/+10
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Refactor `OC\Server::getAppFetcher`Andrew Summers2024-02-231-1/+2
| | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* chore: use DI for \OC\RepairCôme Chilliet2024-01-301-2/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-10/+10
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* chore: Drop \OC_App::getAppVersionChristoph Wurst2023-06-011-2/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge branch 'master' into enh/type-iconfig-getter-callsCôme Chilliet2023-04-201-1/+1
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * app type extended_authenticationMaxence Lange2023-04-121-1/+1
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-051-4/+4
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use implementations instead of interfaces for accessing private methodsjld31032023-03-301-2/+1
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Revert "disable upgrades to 26 for 32-bit"Côme Chilliet2023-02-071-3/+0
| | | | | | This reverts commit faa747e44575269d9f4eb09d0a2c6aa3fe0501f8. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix update for 32-bitSimon L2022-11-251-2/+1
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* disable upgrades to 26 for 32-bitszaimen2022-11-011-0/+4
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Parameter of RepairAdvanceEvent is actually an increment, not a step idCôme Chilliet2022-08-251-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add void return types to callablesCôme Chilliet2022-08-251-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate Repair events to OCP\EventDispatcher\EventCôme Chilliet2022-08-251-78/+46
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate Migrator::executeSql to OCP\EventDispatcher\EventCôme Chilliet2022-08-251-5/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove listeners of \OC\DB\Migrator::checkTable which is never emittedCôme Chilliet2022-08-251-6/+0
| | | | | | See commit a2f3077ee802b4b291ba4f846bfceb69ec0f225f from PR #24384 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Moving to string key for arguments of GenericEvent in RepairCôme Chilliet2022-08-251-8/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Switch to string keys for argument of GenericEvent for OC\DB\MigratorCôme Chilliet2022-08-251-2/+2
| | | | | | It seems checkTable is actually never dispatched? Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove OCP\App and OCP\BackgroundJobCarl Schwan2022-08-011-1/+1
| | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* 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>