From 8c0d3313f03da2cd75e686e83a1f2a9af70ed15c Mon Sep 17 00:00:00 2001 From: Zach Wasserman Date: Mon, 26 Apr 2021 17:47:39 -0700 Subject: [PATCH] Properly set update channels in MSI packaging (#19) Channels were not set in the Orbit invocation causing Orbit to always default to the 'stable' channels. --- pkg/packaging/windows_templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/packaging/windows_templates.go b/pkg/packaging/windows_templates.go index bc07500700..a0e9bf9290 100644 --- a/pkg/packaging/windows_templates.go +++ b/pkg/packaging/windows_templates.go @@ -52,7 +52,7 @@ var windowsWixTemplate = template.Must(template.New("").Option("missingkey=error ErrorControl="ignore" Start="auto" Type="ownProcess" - Arguments='--root-dir "[ORBITROOT]." --log-file "[ORBITROOT]orbit-log.txt" {{ if .FleetURL }}--fleet-url "{{ .FleetURL }}"{{ end }} {{ if .EnrollSecret }}--enroll-secret-path "[ORBITROOT]secret.txt"{{ end }} {{if .Insecure }}--insecure{{ end }} {{ if .UpdateURL }}--update-url "{{ .UpdateURL }}"{{ end }}' + Arguments='--root-dir "[ORBITROOT]." --log-file "[ORBITROOT]orbit-log.txt" {{ if .FleetURL }}--fleet-url "{{ .FleetURL }}"{{ end }} {{ if .EnrollSecret }}--enroll-secret-path "[ORBITROOT]secret.txt"{{ end }} {{if .Insecure }}--insecure{{ end }} {{ if .UpdateURL }}--update-url "{{ .UpdateURL }}" {{ end }} --orbit-channel "{{ .OrbitChannel }}" --osqueryd-channel "{{ .OsquerydChannel }}"' >