Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save LindnerBrewery/613cbbacbe618b438348762f5c35e670 to your computer and use it in GitHub Desktop.
Save LindnerBrewery/613cbbacbe618b438348762f5c35e670 to your computer and use it in GitHub Desktop.
#stop service
Stop-Service 'OctopusDeploy Tentacle:*' -ErrorAction Continue
# download tentacle
$tentacle = "$Env:TEMP\tentacle.msi"
Invoke-WebRequest -UseBasicParsing -Uri https://download.octopusdeploy.com/octopus/Octopus.Tentacle.6.0.0-x64.msi -OutFile $tentacle
# install/update tentacle
Start-Process msiexec.exe -ArgumentList "/i $tentacle /qb" -Wait
# start service
start-Service 'OctopusDeploy Tentacle:*'
# create watchdog
& 'C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe' watchdog --create
# remove tentacle.msi
Remove-Item $tentacle -force
# check log
Get-Content C:\Octopus\Logs\OctopusTentacle.txt -Last 30 -wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment