prevent agent install for testing

This commit is contained in:
2020-09-17 16:00:21 -04:00
parent 4545fcd942
commit 0b56919fc4
+2 -2
View File
@@ -58,8 +58,8 @@ If ( $CUSTOMER_ID -and $TOKEN )
## Install the agent
Write-Log "Begin installing agent"
Try { Start-Process $AGENT_INSTALLER -ArgumentList "/s /v /qn CUSTOMERID=${CUSTOMER_ID} CUSTOMERSPECIFIC=1 REGISTRATION_TOKEN=${TOKEN} SERVERPROTOCOL=HTTPS SERVERADDRESS=${SERVER} SERVERPORT=443" -Wait }
Catch { Write-Log $_.Exception.Message }
#Try { Start-Process $AGENT_INSTALLER -ArgumentList "/s /v /qn CUSTOMERID=${CUSTOMER_ID} CUSTOMERSPECIFIC=1 REGISTRATION_TOKEN=${TOKEN} SERVERPROTOCOL=HTTPS SERVERADDRESS=${SERVER} SERVERPORT=443" -Wait }
#Catch { Write-Log $_.Exception.Message }
## Remove the agent installer
If ( Test-Path $AGENT_INSTALLER )