summaryrefslogtreecommitdiffstats
path: root/core/Command/Maintenance
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Don't use deprecated getIniWrapper() anymoreJoas Schilling2020-08-201-5/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add return value to all commandsJoas Schilling2020-06-268-8/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove db prefix option from cli install commandJoas Schilling2020-05-261-7/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix syntaxJoas Schilling2020-05-061-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-293-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-104-9/+5
| | | | | | | | | | | | | | | 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-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Correctly append the port to the host so it's written to the config correctlyJoas Schilling2020-02-051-1/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-059-11/+27
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-228-11/+13
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add function parameter typehintXheni Myrtaj2019-05-291-1/+1
| | | | Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
* Do not fail integrity check if mimetype list is changedXheni Myrtaj2019-05-292-72/+108
| | | | Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
* Fix #15042Temtaime2019-04-181-0/+1
|
* Make sure maintenance mode is always casted to boolJoas Schilling2019-02-222-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not run getRepairSteps in register_commandsDaniel Kesselberg2019-02-131-5/+8
| | | | | | | | getRepairSteps is quite expensive (because every repair step is initialized and their dependencies are injected). Should not call it during register. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Validate email in occ commandDaniel Kesselberg2018-10-021-0/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add --admin-email to cli installerDaniel Kesselberg2018-10-021-0/+3
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Adds an info if the maintenance mode is already enabled/disabled.Michael Weimann2018-07-011-5/+14
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Remove unused import statementsMorris Jobke2018-02-141-4/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix case when overwrite URL is empty during setupMorris Jobke2018-01-151-1/+1
| | | | | | Found while testing strict typing for PHP 7+. Signed-off-by: Morris Jobke <hey@morrisjobke.de>