Update Deploy-ZabbixAgent2.ps1
Updated Installer Flag to v3
This commit is contained in:
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop"
|
||||
|
||||
# --- 1. Versioned Idempotency Check ---
|
||||
$markerDir = "C:\ProgramData\Zabbix"
|
||||
$marker = "$markerDir\installed_v2.flag"
|
||||
$marker = "$markerDir\installed_v3.flag"
|
||||
$service = Get-Service -Name "Zabbix Agent 2" -ErrorAction SilentlyContinue
|
||||
|
||||
if ((Test-Path $marker) -and ($service -and $service.Status -eq "Running")) {
|
||||
|
||||
Reference in New Issue
Block a user