mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Disable anonymous analytics collection for fleetctl preview (#2372)
* Disable anonymous analytics collection for fleetctl preview * Force run checks
This commit is contained in:
parent
876aa0e366
commit
e4dae5f3d1
2 changed files with 8 additions and 0 deletions
1
changes/issue-2089-disable-analytics-in-preview
Normal file
1
changes/issue-2089-disable-analytics-in-preview
Normal file
|
|
@ -0,0 +1 @@
|
|||
* Disable anonymous analytics collection for `fleetctl preview`.
|
||||
|
|
@ -207,6 +207,13 @@ Use the stop and reset subcommands to manage the server and dependencies once st
|
|||
return errors.New("Expected 1 active enroll secret")
|
||||
}
|
||||
|
||||
// disable anonymous analytics collection for preview
|
||||
if err := client.ApplyAppConfig(map[string]map[string]bool{
|
||||
"server_settings": {"enable_analytics": false}},
|
||||
); err != nil {
|
||||
return errors.Wrap(err, "Error disabling anonymous analytics collection in app config")
|
||||
}
|
||||
|
||||
fmt.Println("Starting simulated hosts...")
|
||||
cmd = exec.Command("docker-compose", "up", "-d", "--remove-orphans")
|
||||
cmd.Dir = filepath.Join(previewDir, "osquery")
|
||||
|
|
|
|||
Loading…
Reference in a new issue