Last active
October 9, 2020 07:15
-
-
Save LindnerBrewery/613cbbacbe618b438348762f5c35e670 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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