Revert "Revert "Add SystemDrive env var to osqueryd if present in orbit"" (#25243)

Reverts fleetdm/fleet#25239
This commit is contained in:
Dante Catalfamo
2025-01-30 14:21:18 -05:00
committed by GitHub
parent 212979d9fc
commit a4a9ba23ce
2 changed files with 7 additions and 0 deletions
@@ -0,0 +1 @@
- Pass `SystemDrive` Environemt variable to osqueryd when present in Orbit
+6
View File
@@ -815,6 +815,12 @@ func main() {
)
}
if runtime.GOOS == "windows" {
if systemDrive, ok := os.LookupEnv("SystemDrive"); ok {
options = append(options, osquery.WithEnv([]string{fmt.Sprintf("SystemDrive=%s", systemDrive)}))
}
}
var certPath string
if fleetURL != "https://" && c.Bool("insecure") {
proxy, err := insecure.NewTLSProxy(fleetURL)