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>
пре 6 година
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
пре 6 година
Lukas Reschke
e9ab7e4fc6
Brand it :see_no_evil:
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
пре 6 година
Ko-
0024b67aaf
Check that set_time_limit is not disabled before calling it
Signed-off-by: Ko- <k.stoffelen@cs.ru.nl>
пре 7 година
Robin Appelman
65ace7c5a7
handle errors in apps while registering commands
Signed-off-by: Robin Appelman <robin@icewind.nl>
пре 7 година
Morris Jobke
6df90909f0
Nextcloud runs only on PHP 5.6+
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
пре 7 година
RealRancor
14b1d946a8
Remove checks whether OC is running on Windows pt. 2
пре 7 година
Patrick Paysant
81d0c47244
console.log now returns 1 instead of 0 on all errors
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
пре 7 година
Joas Schilling
f3319f6294
Allow to call the files even when you are in another instance atm
Signed-off-by: Joas Schilling <coding@schilljs.com>
пре 7 година
Joas Schilling
ba87db3fcc
Fix others
пре 8 година
Morris Jobke
c2d88a08b7
Remove unneeded checks if it runs on a Windows machine
* the setup check is still there
пре 8 година
Lukas Reschke
aba539703c
Update license headers
пре 8 година
Thomas Müller
6a6fc742dc
Catch class Error on all root entrypoints
пре 8 година
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
пре 8 година
Lukas Reschke
933f60e314
Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
пре 8 година
Morris Jobke
4f60ee90d6
Don't show PCNTL warning if --no-warnings is passed
* fixes owncloud/updater#252
пре 8 година
Victor Dubiniuk
972e0c62b3
Add global --no-warning option to occ in order not to pollute output with warnings
пре 8 година
Morris Jobke
244118580a
Fix typo
пре 8 година
Joas Schilling
97b907335a
Dispatch an event when a console command is run
пре 8 година
Thomas Müller
79d2f3186c
Add startup warning that the PCNTL extensions are missing
пре 8 година
Thomas Müller
682821c71e
Happy new year!
пре 8 година
Edward Crompton
6d7a5e002c
Whitespace correction
пре 8 година
Edward Crompton
6c096ec2b4
Removing the . from the end of the help response to match convention set by other messages
пре 8 година
Edward Crompton
61a7728096
Adding a more helpful error message for when occ is run at the console as the wrong user
пре 8 година
Morris Jobke
b8ceae68d5
occ command can only be called from ownCloud root directory
* this changes into the ownCloud root directory and then should run just fine
* avoids weird error messages that are caused by this
пре 8 година
Morris Jobke
b945d71384
update licence headers via script
пре 8 година
Philippe Le Brouster
12b751ddc9
Fix the config.php owner check for console.php
The config directory must be taken from OC::$configDir
Minor fix
- Remove uneeded slash in the configdir path.
пре 9 година
Morris Jobke
f63915d0c8
update license headers and authors
пре 9 година
Lukas Reschke
4c0a8d327d
Add warning to OCC as well in case another PHP version is used there
In regard to a recent rant on social media where users complained about us to have broken the command line tool. Guess reading the documentation is hard…
пре 9 година
Jost Baron
47ddd1794b
Fix error message when wrong user on console
Owncloud complains if the user runs a shell script with a user other than the user that owns `config/config.php`. The error message does not reflect this, and instead speaks about the web server user. Related issue: #15920 .
пре 9 година
Thomas Müller
890a18e1a6
Introduce own console application class
пре 9 година
Thomas Müller
f099c9883e
Adding check command to validate server environment - fixes #15429
пре 9 година
Jenkins for ownCloud
b585d87d9d
Update license headers
пре 9 година
Christian Kampka
bf01327cd0
Don't swallow errors in console.php
пре 9 година
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
пре 9 година
Thomas Müller
bcd10d3dc5
implement command maintenance:install
пре 9 година
Jenkins for ownCloud
6a1a4880f0
Updating license headers
пре 9 година
Thomas Müller
036a8e3c1f
console commands shall not be limited with respect to execution time - fixes #14156
пре 9 година
Thomas Müller
1f01552325
Check for the posix extension - refs https://github.com/owncloud/core/pull/13282#issuecomment-69602645
пре 9 година
Thomas Müller
793e1e8d6e
Check for current user to have the same id then the owner of the config file - fixes #12307
пре 9 година
Vincent Petry
2b1cd84fcc
Do not load apps when an upgrade is due
This makes it still possible to update from the command line, but
disables custom commands from apps
пре 10 година
Thomas Müller
6929549dad
adding try/catch + switch to config object as provided by the server container
пре 10 година
Thomas Müller
8b86b94d47
call OC_App::loadApps(); to load all commands of all apps and related functionality
пре 10 година
Thomas Müller
0db5fead8e
remove some more global variable $RUNTIME_NOAPPS
пре 10 година
Bart Visscher
a9ea99e93d
Add copyright, remove starting blank line
пре 10 година
Bart Visscher
f58fefe5e2
Check all installed apps for console commands
пре 10 година
Bart Visscher
666bbbe060
Use appinfo/register_command.php to add commands to the console command
пре 10 година
Bart Visscher
44b3e71ed4
Cleanup and more style fixes
пре 10 година
Bart Visscher
cafc8cb223
Change Files Scan command to use OC\User\Manager
пре 10 година
Bart Visscher
0aba549e7f
Use more object oriented way for console commands
пре 10 година