From 2915345b7da255c4e1d0da8e8e6557f97eab6b08 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Thu, 19 Dec 2024 14:02:25 +0100 Subject: [PATCH] aio-interface: disable fts if seccomp is not supported in the kernel Signed-off-by: Simon L. --- php/src/Data/ConfigurationManager.php | 5 +++++ php/templates/includes/optional-containers.twig | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/php/src/Data/ConfigurationManager.php b/php/src/Data/ConfigurationManager.php index 3a1e053d..d07b0ad1 100644 --- a/php/src/Data/ConfigurationManager.php +++ b/php/src/Data/ConfigurationManager.php @@ -210,6 +210,11 @@ class ConfigurationManager } 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); diff --git a/php/templates/includes/optional-containers.twig b/php/templates/includes/optional-containers.twig index 35446354..bf489120 100644 --- a/php/templates/includes/optional-containers.twig +++ b/php/templates/includes/optional-containers.twig @@ -50,7 +50,7 @@ {% endif %} >