mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-22 14:36:35 +00:00
TUN-8629: Cloudflared update on Windows requires running it twice to update
This commit is contained in:
parent
cd8cb47866
commit
5c5d1dc161
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user