Commit Graph

86 Commits (master)

Author SHA1 Message Date
provokateurin 6a12fbc4f3
refactor: Run rector
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-09-27 18:52:58 +07:00
Carl Schwan c7315aa10f fix(console): remove trailing comma
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
2025-09-11 16:35:27 +07:00
Carl Schwan 1b3868a499 feat(console): Move profiler output message to stderr
So that this doesn't impact the performance github action.

Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
2025-09-11 15:08:15 +07:00
Carl Schwan 41fe5d4e29 feat(occ): Add profiler link after occ output
Enable easy access to the profile when the profiler app is enabled.

Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
2025-09-04 11:34:50 +07:00
provokateurin 6d6d83d3d9
refactor: Extend rector to all top-level files
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-05-15 10:30:02 +07:00
Daniel Kesselberg af6de04e9e
style: update codestyle for coding-standard 1.2.3
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-08-25 19:34:58 +07:00
Côme Chilliet 9baf8fea8c
fix(occ): Move debug log listener setup to a static method, add option for level
Also changed option from --debug to --debug-log to avoid conflicts

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-07-02 16:02:44 +07:00
Côme Chilliet 2ba0819243
feat(occ): Add a --debug option to output all log levels to the output
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-07-02 15:03:18 +07:00
Côme Chilliet 9a5ab7330a
feat(profiler): Add support for profiler in occ commands
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>
2024-06-27 12:26:53 +07:00
Simon L. 88648fa493 Revert: "Check datadirectory owner, not config owner."
Signed-off-by: Simon L <szaimen@e.mail.de>
2024-05-14 12:09:15 +07:00
Andy Scherzinger 1f7e2ba599
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-13 17:41:36 +07:00
Côme Chilliet 8c5f32320a
fix: use DI to build main Application class in console.php
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-22 12:15:07 +07:00
Côme Chilliet 644036ab4e
fix: Migrate away from OC_App toward the IAppManager
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-22 12:14:58 +07:00
skjnldsv 9123d6fffe fix(cli): do not check the data directory if not setup
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-02-28 15:54:55 +07:00
Sam Bull ae3b9cce99 feat: check `datadirectory` owner instead of `config.php` owner
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-02-28 14:20:30 +07:00
Joas Schilling eb09053897
feat(admin_audit): Migrate to non-deprecated IEventDispatcher
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-04 12:36:30 +07:00
Carl Schwan 010924916c Fix small typo
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-01 11:13:09 +07:00
Carl Schwan 98b25b457e Improve warning about missing pnctl
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-24 15:04:41 +07:00
John Molakvoæ (skjnldsv) 215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-04 22:02:41 +07:00
Joas Schilling df47445c01
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 14:34:32 +07:00
Christoph Wurst 9ce3ea3368
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-30 14:07:05 +07:00
Roeland Jago Douma adc4f1a811
Merge pull request #22916 from J0WI/unifiy-links-to-php.net
Unify links to php.net
2020-12-22 09:53:31 +07:00
Christoph Wurst d89a75be0b
Update all license headers for Nextcloud 21
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-16 18:48:22 +07:00
hoellen 0a02bf4fbb Adjust sudo command to UID instead of username
Signed-off-by: hoellen <dev@hoellen.eu>
2020-10-06 13:03:08 +07:00
hoellen 563f1318cd Remove posix_getpwuid and compare only userid
Signed-off-by: hoellen <dev@hoellen.eu>
2020-10-06 13:03:08 +07:00
J0WI 68ce17e59b Unify links to php.net
Update all links to https://www.php.net/

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2020-09-17 17:40:04 +07:00
Christoph Wurst cb057829f7
Update license headers for 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-29 11:57:22 +07:00
Christoph Wurst 14c996d982
Use elseif instead of else if
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-10 10:35:09 +07:00
Christoph Wurst 5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-05 15:38:45 +07:00
Estelle Poulin b149c047b7 Add note for Docker users running console
Signed-off-by: Estelle Poulin <dev@inspiredby.es>
2019-01-03 11:36:56 +07:00
Michael Weimann c164409ee7
Adds a memory limit warning for console commands if the limit is below the recommended value
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
2018-08-20 15:24:10 +07:00
Roeland Jago Douma b8af7ee9bc
Nextcloud 13 is not compatible with newer than php 7.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>
2017-12-12 10:55:09 +07:00
Morris Jobke 0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-11-06 16:56:19 +07:00
Lukas Reschke e9ab7e4fc6
Brand it 🙈
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-08-11 15:47:24 +07:00
Ko- 0024b67aaf Check that set_time_limit is not disabled before calling it
Signed-off-by: Ko- <k.stoffelen@cs.ru.nl>
2017-03-11 17:04:21 +07:00
Robin Appelman 65ace7c5a7
handle errors in apps while registering commands
Signed-off-by: Robin Appelman <robin@icewind.nl>
2016-11-24 15:13:29 +07:00
Morris Jobke 6df90909f0
Nextcloud runs only on PHP 5.6+
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-10-25 09:20:03 +07:00
RealRancor 14b1d946a8
Remove checks whether OC is running on Windows pt. 2 2016-10-24 16:12:17 +07:00
Patrick Paysant 81d0c47244
console.log now returns 1 instead of 0 on all errors
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-10-21 09:49:08 +07:00
Joas Schilling f3319f6294
Allow to call the files even when you are in another instance atm
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-10-06 12:15:13 +07:00
Joas Schilling ba87db3fcc
Fix others 2016-07-21 18:13:57 +07:00
Morris Jobke c2d88a08b7
Remove unneeded checks if it runs on a Windows machine
* the setup check is still there
2016-07-08 15:55:17 +07:00
Lukas Reschke aba539703c
Update license headers 2016-05-26 19:57:24 +07:00
Thomas Müller 6a6fc742dc Catch class Error on all root entrypoints 2016-04-20 18:01:47 +07:00
Thomas Müller c609abf075
In case of fatal php errors and other unhandled exceptions no html error page is expected to be displayed in the console 2016-04-18 22:30:01 +07:00
Lukas Reschke 933f60e314 Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
2016-03-01 17:25:15 +07:00
Morris Jobke 4f60ee90d6 Don't show PCNTL warning if --no-warnings is passed
* fixes owncloud/updater#252
2016-02-25 10:05:34 +07:00
Victor Dubiniuk 972e0c62b3 Add global --no-warning option to occ in order not to pollute output with warnings 2016-02-19 00:33:48 +07:00
Morris Jobke 244118580a Fix typo 2016-02-11 13:59:15 +07:00
Joas Schilling 97b907335a Dispatch an event when a console command is run 2016-02-05 12:24:54 +07:00