Skip to content

Commit

Permalink
Fixed internal variable on Windows containers
Browse files Browse the repository at this point in the history
  • Loading branch information
dotneft committed Jan 17, 2025
1 parent a1bcd2a commit 9f8aef7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfiles/agent/windows/docker-entrypoint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/agent2/windows/docker-entrypoint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9f8aef7

Please sign in to comment.