Fixing bugs

This commit is contained in:
Chris Long
2018-07-30 21:54:42 -07:00
parent 7d4bb4d78b
commit 95e177f5aa
7 changed files with 24 additions and 34 deletions

View File

@@ -20,12 +20,12 @@ if ($currentContent -ne $targetContent)
Write-Host "Starting the Splunk forwarder"
Start-Service splunkforwarder
}
else
else
{
Write-Host "Splunk forwarder already configured. Moving on."
Write-Host "Splunk forwarder already configured. Moving on."
}
If ((Get-Service -name splunkforwarder).Status -ne "Running")
{
throw "splunkforwarder service was not running."
}
Write-Host "Splunk forwarder installation complete!"
Write-Host "Splunk forwarder installation complete!"