Opt-out of dotnet telemetry for btcpay #599
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/441-optout_dotnet_telemetry"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is done by setting an environment variable in the systemd unit
Fixes #441
Is btcpay safe to restart? I haven't done a Chef run yet
@ -75,2 +75,4 @@
end
systemd_unit_env = "'DOTNET_CLI_TELEMETRY_OPTOUT=1'"
systemd_unit_env << " 'BTCPAY_EXPLORERPOSTGRES=#{nbxpg_connect}'" if defined?(nbxpg_connect)
This should fail if it's not defined, since you need the explorer to run the service. (I.e. just remove the
if
.)Yep, safe to restart anytime.
I ran this on bitcoin-2, this is now ready to review (addressed your comment and fixed the restart of the service/systemd unit) and merge
Do we also need this for the builds, since those are dotnet CLI operations, too?
Good catch, I've just pushed the addition of the environment variable during the build
Looks good.👍