mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-06 05:47:57 +00:00
Make 'dockerSocketPath' an attribute
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
bfa2b64674
commit
63245430ef
2 changed files with 4 additions and 6 deletions
|
|
@ -667,11 +667,9 @@ class ConfigurationManager
|
|||
set { $this->set('fulltextsearch_java_options', $value); }
|
||||
}
|
||||
|
||||
public function GetDockerSocketPath() : string {
|
||||
$envVariableName = 'WATCHTOWER_DOCKER_SOCKET_PATH';
|
||||
$configName = 'docker_socket_path';
|
||||
$defaultValue = '/var/run/docker.sock';
|
||||
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
|
||||
public string $dockerSocketPath {
|
||||
get => $this->GetEnvironmentalVariableOrConfig('WATCHTOWER_DOCKER_SOCKET_PATH', 'docker_socket_path', '/var/run/docker.sock');
|
||||
set { $this->set('docker_socket_path', $value); }
|
||||
}
|
||||
|
||||
public function GetTrustedCacertsDir() : string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue