Joas Schilling
bb352fb667
Use the defined func()->count() instead of manual counting
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 anni fa
Morris Jobke
4d20c4272f
Fix index names
* see #11527
5 anni fa
Morris Jobke
290ede1292
Log exception in case an app update fails
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
5 anni fa
Michael Gerber
020a9add07
Add occ app:update command
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
5 anni fa
Morris Jobke
f5a1f4bc1b
Revert "Wait for cron to finish before running upgrade command"
This reverts commit 18e9631810
.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
5 anni fa
Christoph Wurst
83e994c11f
Make it possible to enforce mandatory 2FA for groups
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 anni fa
Evgeny Golyshev
ec2f02f4a0
Check if TTY is invalid in encryption:encrypt-all and encryption:decrypt-all
Signed-off-by: Evgeny Golyshev <eugulixes@gmail.com>
6 anni fa
Patrik Kernstock
6a00521128
Use error styling for exception message
Signed-off-by: Patrik Kernstock <info@pkern.at>
5 anni fa
Patrik Kernstock
4cd7cf86db
Using Throwable instead of Exception
Signed-off-by: Patrik Kernstock <info@pkern.at>
5 anni fa
Daniel Kesselberg
311de17730
Rename method to abortIfInterrupted
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
5 anni fa
Daniel Kesselberg
14d802b8f3
Refactor method to throw exception instead of true/false
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
5 anni fa
Patrik Kernstock
1973556346
Log exception using ILogger
Signed-off-by: Patrik Kernstock <info@pkern.at>
5 anni fa
Patrik Kernstock
f27ce6b5a0
Inject AppManager and Installer, check for shipped app prior removing
Signed-off-by: Patrik Kernstock <info@pkern.at>
5 anni fa
Patrik Kernstock
f8771d3d81
Run uninstall tasks by default, added '--keep-data' parameter
Signed-off-by: Patrik Kernstock <info@pkern.at>
5 anni fa
Patrik Kernstock
d9469a6b72
Add occ app:remove CLI command
Signed-off-by: Patrik Kernstock <info@pkern.at>
5 anni fa
Daniel Kesselberg
a4eb3ee508
Validate email in occ command
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
5 anni fa
Daniel Kesselberg
6c805ec9ba
Add --admin-email to cli installer
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
5 anni fa
Roeland Jago Douma
b82cbe04df
Add uid_owner and uid_initiator share tabe indices
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
5 anni fa
Christoph Wurst
259c0ce11d
Add mandatory 2FA service/class
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 anni fa
Christoph Wurst
7586b19e52
Only allow 2FA state changs if providers support the operation
Ref https://github.com/nextcloud/server/issues/11019 .
Add `twofactorauth:cleanup` command
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 anni fa
Christoph Wurst
c5cd8d9166
Improve class import and strict typing for generated migration class
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 anni fa
Christoph Wurst
eada4cccfc
Fix generated migration class code
The `@since` documentation is out of place here.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5 anni fa
Denis Mosolov
0b18e2c75d
Add an options to create and remove groups via occ
Signed-off-by: Denis Mosolov <denismosolov@gmail.com>
6 anni fa
Robin Appelman
91d3e48ab3
Add filecache index on mtime
Gives searching by mtime and "recent" a proper index to use
Signed-off-by: Robin Appelman <robin@icewind.nl>
6 anni fa
Joas Schilling
891de38080
Only create the schema when moving between databases
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 anni fa
Joas Schilling
1ca075a113
Correctly handle users with numeric user ids
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 anni fa
Michael Weimann
9bd48e7c0d
Adds an info if the maintenance mode is already enabled/disabled.
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
6 anni fa
Johannes Ernst
0a65e62f29
Added a logger for systemd/journald
Added a unit test
Signed-off-by: Johannes Ernst <jernst@indiecomputing.com>
6 anni fa
Joas Schilling
826ea8c3f9
Use the correct Base class
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 anni fa
Joas Schilling
6eb2653897
Use ellipsis instead of triple dot
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 anni fa
Christoph Wurst
13d93f5b25
Make 2FA providers stateful
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>
6 anni fa
Morris Jobke
18e9631810
Wait for cron to finish before running upgrade command
* fixes #9562
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 anni fa
Roeland Jago Douma
2f59f389d2
Add parent index to share table
Fixes #9327
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 anni fa
Robin Appelman
b40629ac8c
Add human readable description to migration steps
Signed-off-by: Robin Appelman <robin@icewind.nl>
6 anni fa
Roeland Jago Douma
80cc8d0028
Emit event when running ./occ db:add-missing-indices
This allows apps to listen to this event in order to also update
indecies there.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 anni fa
Joas Schilling
f772b7b4dd
Add autocomplete to migration commands
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 anni fa
Morris Jobke
058f8123e6
Set the default log rotate size to 100 MB
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 anni fa
Morris Jobke
514de5dfa1
Use isInstalled of AppManger instead of reimplement it
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 anni fa
Bjoern Schiessle
9259b8a90e
s/ownCloud/Nextcloud
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
6 anni fa
Bjoern Schiessle
31397debaf
fix check and improve error message
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
6 anni fa
Joas Schilling
5080080a36
Anything but true means it failed
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 anni fa
sualko
84f6477ce5
enable app by default after occ app:install
Signed-off-by: Klaus Herberth <klaus@jsxc.org>
6 anni fa
sualko
323eb2e8ba
add enable flag to occ app:install (fix #5834)
Signed-off-by: Klaus Herberth <klaus@jsxc.org>
6 anni fa
Alecks Gates
3be2c558a5
Add mtime and storage_mtime to db:convert-filecache-bigint
6 anni fa
Joas Schilling
211212f4b3
App manager is not needed anymore
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 anni fa
Joas Schilling
17a26dfcc1
Validate the info.xml against the appstore schema file
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 anni fa
Morris Jobke
d3d045dd5c
Remove unused import statements
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 anni fa
Morris Jobke
954da26e26
Use non aliased method instead
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 anni fa
Morris Jobke
eb51f06a3b
Use ::class statement instead of string
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 anni fa
Morris Jobke
a661f043e1
Remove unneeded semicolon and parentheses
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 anni fa