Revert "Revert "Add SystemDrive env var to osqueryd if present in orbit"" (#25243)
Reverts fleetdm/fleet#25239
This commit is contained in:
@@ -0,0 +1 @@
|
||||
- Pass `SystemDrive` Environemt variable to osqueryd when present in Orbit
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user