mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-03-10 20:38:18 +01:00
Fixed internal variable on Windows containers
This commit is contained in:
parent
4236b6d502
commit
903ba7f8e6
@ -62,7 +62,7 @@ function Update-Config-Var {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($VarName -match '^TLS.*File$') {
|
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) {
|
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$') {
|
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) {
|
if ((Get-Content $ConfigPath | %{$_ -match "^$VarName="}) -contains $true -And $IsMultiple -ne $true) {
|
||||||
|
Loading…
Reference in New Issue
Block a user