Make 'dockerSocketPath' an attribute

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl 2026-01-26 10:08:44 +01:00
parent c23d98eb6a
commit 39984bcf8d
2 changed files with 4 additions and 6 deletions

View file

@ -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 {