mirror of
https://mirror.skon.top/github.com/zabbix/zabbix-docker
synced 2026-04-30 22:01:28 +08:00
Fixed internal variable on Windows containers
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user