Make 'fulltextsearchJavaOptions' an attribute

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl 2026-01-26 10:07:53 +01:00
parent 365e1e34e4
commit bfa2b64674

View file

@ -662,11 +662,9 @@ class ConfigurationManager
set { $this->set('borg_retention_policy', $value); } set { $this->set('borg_retention_policy', $value); }
} }
public function GetFulltextsearchJavaOptions() : string { public string $fulltextsearchJavaOptions {
$envVariableName = 'FULLTEXTSEARCH_JAVA_OPTIONS'; get => $this->GetEnvironmentalVariableOrConfig('FULLTEXTSEARCH_JAVA_OPTIONS', 'fulltextsearch_java_options', '-Xms512M -Xmx512M');
$configName = 'fulltextsearch_java_options'; set { $this->set('fulltextsearch_java_options', $value); }
$defaultValue = '-Xms512M -Xmx512M';
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
} }
public function GetDockerSocketPath() : string { public function GetDockerSocketPath() : string {
@ -1076,7 +1074,7 @@ class ConfigurationManager
'NEXTCLOUD_MEMORY_LIMIT' => $this->nextcloudMemoryLimit, 'NEXTCLOUD_MEMORY_LIMIT' => $this->nextcloudMemoryLimit,
'NEXTCLOUD_MAX_TIME' => $this->nextcloudMaxTime, 'NEXTCLOUD_MAX_TIME' => $this->nextcloudMaxTime,
'BORG_RETENTION_POLICY' => $this->borgRetentionPolicy, 'BORG_RETENTION_POLICY' => $this->borgRetentionPolicy,
'FULLTEXTSEARCH_JAVA_OPTIONS' => $this->GetFulltextsearchJavaOptions(), 'FULLTEXTSEARCH_JAVA_OPTIONS' => $this->fulltextsearchJavaOptions,
'NEXTCLOUD_TRUSTED_CACERTS_DIR' => $this->GetTrustedCacertsDir(), 'NEXTCLOUD_TRUSTED_CACERTS_DIR' => $this->GetTrustedCacertsDir(),
'ADDITIONAL_DIRECTORIES_BACKUP' => $this->GetAdditionalBackupDirectoriesString() !== '' ? 'yes' : '', 'ADDITIONAL_DIRECTORIES_BACKUP' => $this->GetAdditionalBackupDirectoriesString() !== '' ? 'yes' : '',
'BORGBACKUP_HOST_LOCATION' => $this->borgBackupHostLocation, 'BORGBACKUP_HOST_LOCATION' => $this->borgBackupHostLocation,