mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-14 09:40:15 +00:00
Make 'trustedCacertsDir' an attribute
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
63245430ef
commit
4ad8fcf258
2 changed files with 5 additions and 7 deletions
|
|
@ -134,7 +134,7 @@ readonly class ContainerDefinitionFetcher {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} elseif ($value['source'] === '%NEXTCLOUD_TRUSTED_CACERTS_DIR%') {
|
} elseif ($value['source'] === '%NEXTCLOUD_TRUSTED_CACERTS_DIR%') {
|
||||||
$value['source'] = $this->configurationManager->GetTrustedCacertsDir();
|
$value['source'] = $this->configurationManager->trustedCacertsDir;
|
||||||
if($value['source'] === '') {
|
if($value['source'] === '') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -672,11 +672,9 @@ class ConfigurationManager
|
||||||
set { $this->set('docker_socket_path', $value); }
|
set { $this->set('docker_socket_path', $value); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public function GetTrustedCacertsDir() : string {
|
public string $trustedCacertsDir {
|
||||||
$envVariableName = 'NEXTCLOUD_TRUSTED_CACERTS_DIR';
|
get => $this->GetEnvironmentalVariableOrConfig('NEXTCLOUD_TRUSTED_CACERTS_DIR', 'trusted_cacerts_dir', '');
|
||||||
$configName = 'trusted_cacerts_dir';
|
set { $this->set('trusted_cacerts_dir', $value); }
|
||||||
$defaultValue = '';
|
|
||||||
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function GetNextcloudAdditionalApks() : string {
|
public function GetNextcloudAdditionalApks() : string {
|
||||||
|
|
@ -1073,7 +1071,7 @@ class ConfigurationManager
|
||||||
'NEXTCLOUD_MAX_TIME' => $this->nextcloudMaxTime,
|
'NEXTCLOUD_MAX_TIME' => $this->nextcloudMaxTime,
|
||||||
'BORG_RETENTION_POLICY' => $this->borgRetentionPolicy,
|
'BORG_RETENTION_POLICY' => $this->borgRetentionPolicy,
|
||||||
'FULLTEXTSEARCH_JAVA_OPTIONS' => $this->fulltextsearchJavaOptions,
|
'FULLTEXTSEARCH_JAVA_OPTIONS' => $this->fulltextsearchJavaOptions,
|
||||||
'NEXTCLOUD_TRUSTED_CACERTS_DIR' => $this->GetTrustedCacertsDir(),
|
'NEXTCLOUD_TRUSTED_CACERTS_DIR' => $this->trustedCacertsDir,
|
||||||
'ADDITIONAL_DIRECTORIES_BACKUP' => $this->GetAdditionalBackupDirectoriesString() !== '' ? 'yes' : '',
|
'ADDITIONAL_DIRECTORIES_BACKUP' => $this->GetAdditionalBackupDirectoriesString() !== '' ? 'yes' : '',
|
||||||
'BORGBACKUP_HOST_LOCATION' => $this->borgBackupHostLocation,
|
'BORGBACKUP_HOST_LOCATION' => $this->borgBackupHostLocation,
|
||||||
'APACHE_MAX_SIZE' => (string)($this->GetApacheMaxSize()),
|
'APACHE_MAX_SIZE' => (string)($this->GetApacheMaxSize()),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue