aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Maintenance
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #50999 from nextcloud/fix/move-away-from-oc-appCôme Chilliet2025-02-271-1/+1
|\ | | | | fix: Replace OC_App calls by IAppManager
| * fix: Replace OC_App calls by IAppManagerCôme Chilliet2025-02-241-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix(l10n): Improve english source stringsJoas Schilling2025-02-261-1/+1
|/ | | | | | | - No leading/trailing whitespace - Use asci single quote Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Replace getInstalledApps calls with getEnabledAppsfix/clarify-app-manager-methodsCôme Chilliet2025-02-131-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: make sure we process mime extensions as stringskjnldsv2025-02-052-0/+8
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix: Make `maintenance:mode` description more accurate + add helpjtr/occ-maintenance-mode-descJosh2025-01-011-1/+2
| | | Signed-off-by: Josh <josh.t.richards@gmail.com>
* fix(maintenance): Show a success message on data-fingerprint commandJoas Schilling2024-12-021-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* ci: Fix psalm by typing the QuestionHelperJoas Schilling2024-10-071-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-194-10/+10
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: optimise getWrongShareOwnership queryHamza Mahjoubi2024-08-271-1/+1
| | | | Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-14/+14
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-2610-217/+33
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Improve typing of mimetype aliasesCôme Chilliet2024-04-301-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: replace `Account name` by `Login`John Molakvoæ2024-02-131-2/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat: rename users to account or personVincent Petry2024-02-131-3/+3
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* chore: Cleanup Installer class as wellCôme Chilliet2024-01-291-3/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Use DI for Setup class and move away from deprecated methodsCôme Chilliet2024-01-291-13/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-232-5/+5
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* document errorSimon L2023-11-171-1/+1
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* fix(install): Make installing more verboseJoas Schilling2023-11-031-1/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Moves single constructor parameters to new lines.Faraz Samapoor2023-06-192-2/+6
| | | | | | | Based on: https://github.com/nextcloud/server/pull/38764#discussion_r1227630895 Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* Uses PHP8's constructor property promotion in core/Command/Maintenance classes.Faraz Samapoor2023-06-198-51/+21
| | | | Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* list supported databases when provided db isn't supportedRobin Appelman2023-05-041-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fail the repair command when an error happenedJoas Schilling2023-02-231-1/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #36271 from nextcloud/fix/fix-codestyleCôme Chilliet2023-01-201-1/+0
|\ | | | | Fix codestyle using codesniffer
| * composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix(occ): Fix comment formatting of maintenance:repair commandChristoph Wurst2023-01-201-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(PHP8.2): Fix deprecated string interpolation syntaxChristoph Wurst2023-01-191-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Rename canInstallExists method and add new method for removalAlex Harpin2023-01-101-1/+1
| | | | | | | | Rename canInstallExists to shouldRemoveCanInstallFile to cover removal of this file for non-git channels and logging any failure to remove it. Add new method to detect if this file exists during web based installation. Signed-off-by: Alex Harpin <development@landsofshadow.co.uk>
* Log a warning to CLI install command if CAN_INSTALL is not removedAlex Harpin2023-01-101-0/+3
| | | | | | Log a warning for the CLI install command if the CAN_INSTALL file still exists at the end of the installation. This matches the warning logged by the web installer. Signed-off-by: Alex Harpin <development@landsofshadow.co.uk>
* fix repairing non user shares when repairing all sharesRobin Appelman2022-11-081-10/+33
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* split repairing into two stages to prevent long open transactionRobin Appelman2022-11-081-32/+66
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* update shares directly in dbRobin Appelman2022-11-081-13/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* More verbose output for repair share ownership cmdVincent Petry2022-11-081-2/+3
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* move share owner repair to occ commandRobin Appelman2022-11-081-0/+134
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #32859 from nextcloud/bug/31973/array-key-might-be-emptyLouis2022-10-111-7/+5
|\ | | | | Fix Uninitialized string offset 0 at GenerateMimetypeFileBuilder.php#39
| * Fix Uninitialized string offset 0 at GenerateMimetypeFileBuilder.php#39Daniel Kesselberg2022-06-281-7/+5
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.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>
* | Surround cli output with appropriate xml tagsCôme Chilliet2022-08-251-3/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Migrate Repair events to OCP\EventDispatcher\EventCôme Chilliet2022-08-251-38/+34
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Moving to string key for arguments of GenericEvent in RepairCôme Chilliet2022-08-251-6/+6
| | | | | | | | 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>
* Update core to PHP 7.4 standardCarl Schwan2022-05-207-45/+16
| | | | | | | - Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-049-12/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix unit testsJoas Schilling2021-04-271-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* make repair errors more visibleRobin Appelman2021-03-181-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add more previous exceptions to database setup codeMorris Jobke2021-01-071-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Print an exception trace for setup exceptionsChristoph Wurst2021-01-071-3/+19
| | | | | | | | | Right now any setup error will just result in the exception message being printed. In some cases this doesn't give any insights into what went wrong. This adds some dedicated logic to print the exception trace and any previous exceptions to the CLI. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-245-1/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>