mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
fix: MacOS MDM based Deployment (#277)
* fix: MacOS MDM deployment script * fix: Handle shell alias for bash on macos * fix: Code review fixes * fix: Code review fixes * feat: Add support for global config file * feat: Add support for global config file * fix: Code review fixes * fix: Avoid blocking CLI for analytics flush
This commit is contained in:
@@ -16,6 +16,8 @@ const (
|
||||
postHogEventEndpoint = "https://us.i.posthog.com"
|
||||
|
||||
telemetryDisableEnvKey = "PMG_DISABLE_TELEMETRY"
|
||||
|
||||
analyticsFlushInterval = 2 * time.Second
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -32,6 +34,7 @@ func init() {
|
||||
|
||||
client, err := posthog.NewWithConfig(postHogApiKey, posthog.Config{
|
||||
Endpoint: postHogEventEndpoint,
|
||||
Interval: analyticsFlushInterval,
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to initialize posthog client: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user