From 29c8eb1580791e0cf5238156dfd6a3ecafe478c7 Mon Sep 17 00:00:00 2001 From: Geoffrey Huntley Date: Mon, 14 Nov 2022 04:42:45 +0000 Subject: [PATCH 1/2] feat(windows): rename windows agent to coderd.exe --- provisionersdk/scripts/bootstrap_windows.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/provisionersdk/scripts/bootstrap_windows.ps1 b/provisionersdk/scripts/bootstrap_windows.ps1 index 469ace15fbdb8..c07139bca917c 100644 --- a/provisionersdk/scripts/bootstrap_windows.ps1 +++ b/provisionersdk/scripts/bootstrap_windows.ps1 @@ -15,7 +15,7 @@ while ($true) { # https://github.com/microsoft/vscode-remote-release/issues/5699 $BINARY_URL="${ACCESS_URL}/bin/coder-windows-${ARCH}.exe" Write-Output "Fetching coder agent from ${BINARY_URL}" - Invoke-WebRequest -Uri "${BINARY_URL}" -OutFile $env:TEMP\sshd.exe + Invoke-WebRequest -Uri "${BINARY_URL}" -OutFile $env:TEMP\coderd.exe break } catch { Write-Output "error: unhandled exception fetching coder agent:" @@ -26,7 +26,7 @@ while ($true) { } # If the below fails, retrying probably will not help. -Set-MpPreference -DisableRealtimeMonitoring $true -ExclusionPath $env:TEMP\sshd.exe +Set-MpPreference -DisableRealtimeMonitoring $true -ExclusionPath $env:TEMP\coderd.exe $env:CODER_AGENT_AUTH = "${AUTH_TYPE}" $env:CODER_AGENT_URL = "${ACCESS_URL}" -Start-Process -FilePath $env:TEMP\sshd.exe -ArgumentList "agent" -PassThru +Start-Process -FilePath $env:TEMP\coderd.exe -ArgumentList "agent" -PassThru From c258670a4ef152262f48bfea738a55caad3296ac Mon Sep 17 00:00:00 2001 From: Geoffrey Huntley Date: Mon, 14 Nov 2022 05:46:23 +0000 Subject: [PATCH 2/2] change of mind, use coder.exe instead --- provisionersdk/scripts/bootstrap_windows.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/provisionersdk/scripts/bootstrap_windows.ps1 b/provisionersdk/scripts/bootstrap_windows.ps1 index c07139bca917c..5a87b800ba8af 100644 --- a/provisionersdk/scripts/bootstrap_windows.ps1 +++ b/provisionersdk/scripts/bootstrap_windows.ps1 @@ -15,7 +15,7 @@ while ($true) { # https://github.com/microsoft/vscode-remote-release/issues/5699 $BINARY_URL="${ACCESS_URL}/bin/coder-windows-${ARCH}.exe" Write-Output "Fetching coder agent from ${BINARY_URL}" - Invoke-WebRequest -Uri "${BINARY_URL}" -OutFile $env:TEMP\coderd.exe + Invoke-WebRequest -Uri "${BINARY_URL}" -OutFile $env:TEMP\coder.exe break } catch { Write-Output "error: unhandled exception fetching coder agent:" @@ -26,7 +26,7 @@ while ($true) { } # If the below fails, retrying probably will not help. -Set-MpPreference -DisableRealtimeMonitoring $true -ExclusionPath $env:TEMP\coderd.exe +Set-MpPreference -DisableRealtimeMonitoring $true -ExclusionPath $env:TEMP\coder.exe $env:CODER_AGENT_AUTH = "${AUTH_TYPE}" $env:CODER_AGENT_URL = "${ACCESS_URL}" -Start-Process -FilePath $env:TEMP\coderd.exe -ArgumentList "agent" -PassThru +Start-Process -FilePath $env:TEMP\coder.exe -ArgumentList "agent" -PassThru