mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 04:56:52 +00:00
Make 'fulltextsearchJavaOptions' an attribute
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
365e1e34e4
commit
bfa2b64674
1 changed files with 4 additions and 6 deletions
|
|
@ -662,11 +662,9 @@ class ConfigurationManager
|
|||
set { $this->set('borg_retention_policy', $value); }
|
||||
}
|
||||
|
||||
public function GetFulltextsearchJavaOptions() : string {
|
||||
$envVariableName = 'FULLTEXTSEARCH_JAVA_OPTIONS';
|
||||
$configName = 'fulltextsearch_java_options';
|
||||
$defaultValue = '-Xms512M -Xmx512M';
|
||||
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
|
||||
public string $fulltextsearchJavaOptions {
|
||||
get => $this->GetEnvironmentalVariableOrConfig('FULLTEXTSEARCH_JAVA_OPTIONS', 'fulltextsearch_java_options', '-Xms512M -Xmx512M');
|
||||
set { $this->set('fulltextsearch_java_options', $value); }
|
||||
}
|
||||
|
||||
public function GetDockerSocketPath() : string {
|
||||
|
|
@ -1076,7 +1074,7 @@ class ConfigurationManager
|
|||
'NEXTCLOUD_MEMORY_LIMIT' => $this->nextcloudMemoryLimit,
|
||||
'NEXTCLOUD_MAX_TIME' => $this->nextcloudMaxTime,
|
||||
'BORG_RETENTION_POLICY' => $this->borgRetentionPolicy,
|
||||
'FULLTEXTSEARCH_JAVA_OPTIONS' => $this->GetFulltextsearchJavaOptions(),
|
||||
'FULLTEXTSEARCH_JAVA_OPTIONS' => $this->fulltextsearchJavaOptions,
|
||||
'NEXTCLOUD_TRUSTED_CACERTS_DIR' => $this->GetTrustedCacertsDir(),
|
||||
'ADDITIONAL_DIRECTORIES_BACKUP' => $this->GetAdditionalBackupDirectoriesString() !== '' ? 'yes' : '',
|
||||
'BORGBACKUP_HOST_LOCATION' => $this->borgBackupHostLocation,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue