Skip to content

Commit

Permalink
TUN-8629: Cloudflared update on Windows requires running it twice to …
Browse files Browse the repository at this point in the history
…update
  • Loading branch information
deansundquist committed Sep 16, 2024
1 parent cd8cb47 commit 5c5d1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cloudflared/updater/workers_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const (
// start the service
// exit with code 0 if we've reached this point indicating success.
windowsUpdateCommandTemplate = `sc stop cloudflared >nul 2>&1
del "{{.OldPath}}"
rename "{{.TargetPath}}" {{.OldName}}
rename "{{.NewPath}}" {{.BinaryName}}
del "{{.OldPath}}"
sc start cloudflared >nul 2>&1
exit /b 0`
batchFileName = "cfd_update.bat"
Expand Down

0 comments on commit 5c5d1dc

Please sign in to comment.