Fixed internal variable on Windows containers

This commit is contained in:
Alexey Pustovalov 2025-01-17 14:00:53 +09:00
parent a1bcd2aece
commit 9f8aef76a8
2 changed files with 2 additions and 2 deletions

View File

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

View File

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