diff --git a/Dockerfiles/agent/windows/docker-entrypoint.ps1 b/Dockerfiles/agent/windows/docker-entrypoint.ps1 index c7bb5d4bc..c5864926c 100644 --- a/Dockerfiles/agent/windows/docker-entrypoint.ps1 +++ b/Dockerfiles/agent/windows/docker-entrypoint.ps1 @@ -62,7 +62,7 @@ function Update-Config-Var { } if ($VarName -match '^TLS.*File$') { - $VarValue="$ZabbixUserHomeDir\enc\$VarValue" + $VarValue="$env:ZABBIX_USER_HOME_DIR\enc\$VarValue" } if ((Get-Content $ConfigPath | %{$_ -match "^$VarName="}) -contains $true -And $IsMultiple -ne $true) { diff --git a/Dockerfiles/agent2/windows/docker-entrypoint.ps1 b/Dockerfiles/agent2/windows/docker-entrypoint.ps1 index d0a690745..c7ce0ee3d 100644 --- a/Dockerfiles/agent2/windows/docker-entrypoint.ps1 +++ b/Dockerfiles/agent2/windows/docker-entrypoint.ps1 @@ -62,7 +62,7 @@ function Update-Config-Var { } if ($VarName -match '^TLS.*File$') { - $VarValue="$ZabbixUserHomeDir\enc\$VarValue" + $VarValue="$env:ZABBIX_USER_HOME_DIR\enc\$VarValue" } if ((Get-Content $ConfigPath | %{$_ -match "^$VarName="}) -contains $true -And $IsMultiple -ne $true) {