summaryrefslogtreecommitdiffstats
path: root/core/register_command.php
Commit message (Collapse)AuthorAgeFilesLines
...
| * Add OCC command to reset rendered textsDaniel Calviño Sánchez2021-03-011-0/+1
| | | | | | | | | | | | | | | | | | | | The command is meant to be used when the fonts used to render texts ("core/fonts/NotoSans-Regular.ttf" and "core/fonts/NotoSans-Bold.ttf") are changed (for example, to add support for other scripts). The avatar and text file previews will be removed, so they will be generated again with the updated font when needed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | log full expection during repair stepRobin Appelman2021-03-181-1/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Show group backends in occ group:list --info and group:infoJohannes Leuker2021-03-011-0/+1
|/ | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-9/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Command: Add app password generationSean Molenaar2021-01-051-0/+2
| | | | Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Register new command db:add-missing-primary-keysMichaIng2020-11-131-0/+1
| | | | | Introduced with: https://github.com/nextcloud/server/commit/d5df033ede1f2b19b87c365b1f808130023edf17 Signed-off-by: MichaIng <micha@dietpi.com>
* Improve CertificateManager to not be user context dependentMorris Jobke2020-11-031-3/+3
| | | | | | | | | * removes the ability for users to import their own certificates (for external storage) * reliably returns the same certificate bundles system wide (and not depending on the user context and available sessions) The user specific certificates were broken in some cases anyways, as they are only loaded if the specific user is logged in and thus causing unexpected behavior for background jobs and other non-user triggered code paths. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22331 from ↵Roeland Jago Douma2020-08-201-1/+1
|\ | | | | | | | | nextcloud/bugfix/noid/dont-use-deprecated-inigetwrapper Don't use deprecated getIniWrapper() anymore
| * Use the DI container also for the Install command registrationMorris Jobke2020-08-201-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | New SSE key formatRoeland Jago Douma2020-08-201-0/+8
|/ | | | | | | * Encrypt the keys with the instance secret * Store them as json (so we can add other things if needed) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Show disabled user count in occ user:reportMorris Jobke2020-08-191-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix "misplaced variables" warning of Psalm in PHPDoc statementsMorris Jobke2020-08-171-1/+1
| | | | | | Ref #21787 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add occ preview:migrate to migrate previews from the old flat structure to a ↵Morris Jobke2020-08-061-0/+2
| | | | | | | | | | | | | | subfolder structure * `php occ preview:repair` - a preview migration tool that moves existing previews into the new location introduced with #19214 * moves `appdata_INSTANCEID/previews/FILEID` to `appdata_INSTANCEID/previews/0/5/8/4/c/e/5/FILEID` * migration tool can be stopped during migration via `CTRL+C` - it then finishes the current folder (with the previews of one file) and stops gracefully * if a PHP memory limit is set in the `php.ini` then it will stop automatically once it has less than 25 MiB memory left (this is to avoid hard crashes in the middle of a migration) * the tool can be used during operation - possible drawbacks: * there is the chance of a race condition that a new preview is generated in the moment the folder is already migrated away - so the old folder with the newly cached preview is deleted and one cached preview needs to be re-generated * there is the chance of a race condition during access of a preview while it is migrated to the other folder - then no preview can be shown and results in a 404 (as of now this is an accepted risk) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #20005 from joeried/occ-remove-bruteforce-attempts-by-ipMorris Jobke2020-05-251-0/+1
|\ | | | | Implement occ command to reset bruteforce attemps from a given IP address
| * Implement occ command security:bruteforceattemps:reset-for-ipJohannes Riedel2020-03-191-0/+1
| | | | | | | | Signed-off-by: Johannes Riedel <joeried@users.noreply.github.com>
* | Add optional column oc_comments.reference_idJoas Schilling2020-03-311-0/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-051-3/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make it possible to broadcast events to (web) clientsChristoph Wurst2019-10-281-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add detailed users listing in occ user:info commandJohn Molakvoæ (skjnldsv)2019-10-171-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Stop decryption when maintenance mode is enabled, fixes #8311Ruben Homs2019-05-211-2/+2
| | | | Signed-off-by: Ruben Homs <ruben@homs.codes>
* Enable multiple apps at onceDaniel Kesselberg2019-02-191-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Do not run getRepairSteps in register_commandsDaniel Kesselberg2019-02-131-2/+5
| | | | | | | | 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>
* Add occ app:update commandMichael Gerber2018-11-011-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Log exception using ILoggerPatrik Kernstock2018-10-051-1/+1
| | | | Signed-off-by: Patrik Kernstock <info@pkern.at>
* Inject AppManager and Installer, check for shipped app prior removingPatrik Kernstock2018-10-051-1/+1
| | | | Signed-off-by: Patrik Kernstock <info@pkern.at>
* Add occ app:remove CLI commandPatrik Kernstock2018-10-051-0/+1
| | | | Signed-off-by: Patrik Kernstock <info@pkern.at>
* Add mandatory 2FA service/classChristoph Wurst2018-09-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Only allow 2FA state changs if providers support the operationChristoph Wurst2018-09-251-6/+3
| | | | | | | | Ref https://github.com/nextcloud/server/issues/11019. Add `twofactorauth:cleanup` command Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add an options to create and remove groups via occDenis Mosolov2018-08-161-0/+2
| | | | Signed-off-by: Denis Mosolov <denismosolov@gmail.com>
* Make 2FA providers statefulChristoph Wurst2018-06-201-0/+1
| | | | | | | | | | | This adds persistence to the Nextcloud server 2FA logic so that the server knows which 2FA providers are enabled for a specific user at any time, even when the provider is not available. The `IStatefulProvider` interface was added as tagging interface for providers that are compatible with this new API. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Emit event when running ./occ db:add-missing-indicesRoeland Jago Douma2018-05-241-1/+1
| | | | | | | This allows apps to listen to this event in order to also update indecies there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add autocomplete to migration commandsJoas Schilling2018-05-031-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Validate the info.xml against the appstore schema fileJoas Schilling2018-02-161-2/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* make occ command more genericBjoern Schiessle2017-12-181-1/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add occ command to add a index to share_with at the share tableBjoern Schiessle2017-12-181-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Get the Installer via DIMorris Jobke2017-11-251-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-0/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use proper DI for repair commandMorris Jobke2017-10-241-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add a command to manually migrate to big intsJoas Schilling2017-10-131-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add occ app:install commandsualko2017-07-261-1/+2
| | | | Signed-off-by: Klaus Herberth <klaus@jsxc.org>
* Remove generate change script which doesnt work with migrations anymoreJoas Schilling2017-07-251-1/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a script to generate a migration from database.xmlJoas Schilling2017-07-251-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not allow to go back on productive systemsJoas Schilling2017-07-051-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Start migrationsJoas Schilling2017-07-051-0/+4
| | | | | | | | | | 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>
* Add command to apply updates to custom themesJulius Härtl2017-07-051-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Adding tests for 4 byte unicode charactersMorris Jobke2017-03-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * success on SQLite and Postgres * failure on MySQL due to the limited charset that only supports up to 3 bytes Add config option to update charset of mysql to utf8mb4 * fully optional * requires additional options set in the database only disable unicode test on mysql Fixing ctor call Adding docker based unit test execution for mysql utf8mb4 Add mysqlmb4 test configuration to Jenkinsfile fix collation on utf8mb4 Properly setup charset and collation in the doctrine connection Allow files containing 4-byte chars in case the database supports it During setup of a mysql database we try to detect if charset 'utf8mb4' can be used Fix mysql settings Add console command to migrate the charset Set ROW_FORMAT before setting collation to mb4 Also select tables with wrong collation Faster MySQL docker Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use SystemConfig instead of AllConfig for DB stuffMorris Jobke2017-03-191-3/+3
| | | | | | * preparation for followup PRs to clean up the DB bootstrapping Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Clean up single user modeMorris Jobke2017-02-221-1/+0
| | | | | | | | | | | | | | Single user mode basically disables WebDAV, OCS and cron execution. Since we heavily rely on WebDAV and OCS also in the web UI it's basically useless. An admin only sees a broken interface and can't even change any settings nor sees any files. Also sharing is not possible. As this is at least the case since Nextcloud 9 and we haven't received any reports for this it seems that this feature is not used at all so I removed it. The encryption commands now rely on the well tested maintenance mode. Signed-off-by: Morris Jobke <hey@morrisjobke.de>