Skip to content

Commit

Permalink
Merge pull request #5775 from nextcloud/enh/5768/disable-fts-seccomp
Browse files Browse the repository at this point in the history
disable fts if seccomp is not supported in the kernel
  • Loading branch information
szaimen authored Dec 20, 2024
2 parents 53edc5d + 2915345 commit 05bad1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions php/src/Data/ConfigurationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ public function isFulltextsearchEnabled() : bool {
}

public function SetFulltextsearchEnabledState(int $value) : void {
# Elasticsearch does not work on kernels without seccomp anymore. See https://github.com/nextcloud/all-in-one/discussions/5768
if ($this->GetCollaboraSeccompDisabledState() === 'true') {
$value = 0;
}

$config = $this->GetConfig();
$config['isFulltextsearchEnabled'] = $value;
$this->WriteConfig($config);
Expand Down
2 changes: 1 addition & 1 deletion php/templates/includes/optional-containers.twig
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
{% endif %}
>
<label for="fulltextsearch">
Fulltextsearch (needs ~1GB additional RAM)
Fulltextsearch (needs ~1GB additional RAM, <a href="https://github.com/nextcloud/all-in-one/discussions/5768">does not work on Kernels without Seccomp</a>)
{% if is_fulltextsearch_enabled == false %}
. <strong>Please note:</strong> the initial indexing can take a long time during which Nextcloud will be unavailable
{% endif %}
Expand Down

0 comments on commit 05bad1b

Please sign in to comment.