aboutsummaryrefslogtreecommitdiffstats
path: root/console.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(occ): Move debug log listener setup to a static method, add option for levelCôme Chilliet2024-07-021-6/+1
| | | | | | Also changed option from --debug to --debug-log to avoid conflicts Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(occ): Add a --debug option to output all log levels to the outputCôme Chilliet2024-07-021-2/+10
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(profiler): Add support for profiler in occ commandsCôme Chilliet2024-06-271-1/+30
| | | | | | | Commands will appear in available profiles after the command ran. Method is set to "occ" and URL to the command line with parameters. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Revert: "Check datadirectory owner, not config owner."Simon L.2024-05-141-19/+8
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-131-30/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: use DI to build main Application class in console.phpCôme Chilliet2024-04-221-9/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Migrate away from OC_App toward the IAppManagerCôme Chilliet2024-04-221-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(cli): do not check the data directory if not setupskjnldsv2024-02-281-10/+21
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat: check `datadirectory` owner instead of `config.php` ownerSam Bull2024-02-281-7/+9
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(admin_audit): Migrate to non-deprecated IEventDispatcherJoas Schilling2023-07-041-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix small typoCarl Schwan2022-06-011-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Improve warning about missing pnctlCarl Schwan2022-05-241-1/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix unit testsJoas Schilling2021-04-271-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2020-12-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22916 from J0WI/unifiy-links-to-php.netRoeland Jago Douma2020-12-221-2/+2
|\ | | | | Unify links to php.net
| * Unify links to php.netJ0WI2020-09-171-2/+2
| | | | | | | | | | | | Update all links to https://www.php.net/ Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-2/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Adjust sudo command to UID instead of usernamehoellen2020-10-061-1/+1
| | | | | | | | Signed-off-by: hoellen <dev@hoellen.eu>
* | Remove posix_getpwuid and compare only useridhoellen2020-10-061-7/+7
|/ | | | Signed-off-by: hoellen <dev@hoellen.eu>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-2/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add note for Docker users running consoleEstelle Poulin2019-01-031-0/+1
| | | | Signed-off-by: Estelle Poulin <dev@inspiredby.es>
* Adds a memory limit warning for console commands if the limit is below the ↵Michael Weimann2018-08-201-1/+7
| | | | | | recommended value Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Nextcloud 13 is not compatible with newer than php 7.2Roeland Jago Douma2017-12-121-8/+2
| | | | | | | | | | | Just to avoid users from trying this with a to new (untested) php version * Moved the check logic to 1 place * All directly callable scripts just require this on top * exit hard (-1) so we know scripts won't continue * Return status 500 so no sync clients will try fancy stuff Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-0/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Brand it :see_no_evil:Lukas Reschke2017-08-111-3/+3
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Check that set_time_limit is not disabled before calling itKo-2017-03-111-1/+3
| | | | Signed-off-by: Ko- <k.stoffelen@cs.ru.nl>
* handle errors in apps while registering commandsRobin Appelman2016-11-241-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Nextcloud runs only on PHP 5.6+Morris Jobke2016-10-251-4/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove checks whether OC is running on Windows pt. 2RealRancor2016-10-241-1/+1
|
* console.log now returns 1 instead of 0 on all errorsPatrick Paysant2016-10-211-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow to call the files even when you are in another instance atmJoas Schilling2016-10-061-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix othersJoas Schilling2016-07-211-5/+3
|
* Remove unneeded checks if it runs on a Windows machineMorris Jobke2016-07-081-14/+12
| | | | * the setup check is still there
* Update license headersLukas Reschke2016-05-261-2/+1
|
* Catch class Error on all root entrypointsThomas Müller2016-04-201-0/+2
|
* In case of fatal php errors and other unhandled exceptions no html error ↵Thomas Müller2016-04-181-3/+8
| | | | page is expected to be displayed in the console
* Update author informationLukas Reschke2016-03-011-0/+2
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* Don't show PCNTL warning if --no-warnings is passedMorris Jobke2016-02-251-1/+1
| | | | * fixes owncloud/updater#252
* Add global --no-warning option to occ in order not to pollute output with ↵Victor Dubiniuk2016-02-191-1/+2
| | | | warnings
* Fix typoMorris Jobke2016-02-111-1/+1
|
* Dispatch an event when a console command is runJoas Schilling2016-02-051-1/+1
|
* Add startup warning that the PCNTL extensions are missingThomas Müller2016-02-011-0/+4
|
* Happy new year!Thomas Müller2016-01-121-1/+2
|
* Whitespace correctionEdward Crompton2016-01-041-1/+1
|
* Removing the . from the end of the help response to match convention set by ↵Edward Crompton2016-01-041-1/+1
| | | | other messages
* Adding a more helpful error message for when occ is run at the console as ↵Edward Crompton2016-01-041-1/+2
| | | | the wrong user
* occ command can only be called from ownCloud root directoryMorris Jobke2015-12-171-0/+10
| | | | | * this changes into the ownCloud root directory and then should run just fine * avoids weird error messages that are caused by this