mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
use telemetry id file
This commit is contained in:
@@ -10,13 +10,13 @@ Resets the password for admin with email specified by default['firezone']['admin
|
||||
DESC
|
||||
|
||||
def capture
|
||||
fqdn = Mixlib::ShellOut.new("hostname -f").run_command.stdout
|
||||
telemetry_id = File.read("/opt/firezone/sv/phoenix/env/TELEMETRY_ID")
|
||||
uri = URI("https://telemetry.firez.one/capture/")
|
||||
data = {
|
||||
api_key: "phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK",
|
||||
event: "firezone-ctl create-or-reset-admin",
|
||||
properties: {
|
||||
distinct_id: fqdn
|
||||
distinct_id: telemetry_id
|
||||
}
|
||||
}
|
||||
unless File.exist?("#{base_path}/.disable-telemetry") || ENV["TELEMETRY_ENABLED"] == "false"
|
||||
|
||||
@@ -6,13 +6,13 @@ require 'net/http'
|
||||
require 'json'
|
||||
|
||||
def capture
|
||||
fqdn = Mixlib::ShellOut.new("hostname -f").run_command.stdout
|
||||
telemetry_id = File.read("/opt/firezone/sv/phoenix/env/TELEMETRY_ID")
|
||||
uri = URI("https://telemetry.firez.one/capture/")
|
||||
data = {
|
||||
api_key: "phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK",
|
||||
event: "firezone-ctl reconfigure",
|
||||
properties: {
|
||||
distinct_id: fqdn
|
||||
distinct_id: telemetry_id
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user