diff options
| author | Jan Vermaete <jan.vermaete@gmail.com> | 2021-12-19 09:47:54 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-12-23 23:05:27 -0800 |
| commit | 2bf65c1d863bed9cea746747ef119cdd7d6d6e71 (patch) | |
| tree | b5a433b3091b4ad2b3a48248ff071236d86d7a41 /meta-webserver/recipes-webadmin/netdata | |
| parent | 3b883ba6d5cbe23f6d9e7c2e7e4b2c8f8f4069ab (diff) | |
| download | meta-openembedded-2bf65c1d863bed9cea746747ef119cdd7d6d6e71.tar.gz | |
netdata: do not send anonymous statistics by default.
Netdata is sending anonymous statics data to Google by default.
Disabling this by default in the recipe by adding the
.opt-out-from-anonymous-statistics file in the netdata config
directory.
@see: https://learn.netdata.cloud/docs/agent/anonymous-statistics#opt-out
Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-webserver/recipes-webadmin/netdata')
| -rw-r--r-- | meta-webserver/recipes-webadmin/netdata/netdata_1.32.1.bb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-webserver/recipes-webadmin/netdata/netdata_1.32.1.bb b/meta-webserver/recipes-webadmin/netdata/netdata_1.32.1.bb index d479051c4c..6824dd7257 100644 --- a/meta-webserver/recipes-webadmin/netdata/netdata_1.32.1.bb +++ b/meta-webserver/recipes-webadmin/netdata/netdata_1.32.1.bb | |||
| @@ -20,6 +20,10 @@ UPSTREAM_CHECK_URI = "https://github.com/netdata/netdata/releases" | |||
| 20 | 20 | ||
| 21 | S = "${WORKDIR}/${BPN}-v${PV}" | 21 | S = "${WORKDIR}/${BPN}-v${PV}" |
| 22 | 22 | ||
| 23 | PACKAGECONFIG ??= "\ | ||
| 24 | anonymous \ | ||
| 25 | " | ||
| 26 | |||
| 23 | inherit pkgconfig autotools-brokensep useradd systemd | 27 | inherit pkgconfig autotools-brokensep useradd systemd |
| 24 | 28 | ||
| 25 | LIBS:toolchain-clang:x86 = "-latomic" | 29 | LIBS:toolchain-clang:x86 = "-latomic" |
| @@ -58,6 +62,11 @@ do_install:append() { | |||
| 58 | sed -i -e 's,@@libdir,${libexecdir},g' ${D}${sysconfdir}/netdata/netdata.conf | 62 | sed -i -e 's,@@libdir,${libexecdir},g' ${D}${sysconfdir}/netdata/netdata.conf |
| 59 | sed -i -e 's,@@datadir,${datadir},g' ${D}${sysconfdir}/netdata/netdata.conf | 63 | sed -i -e 's,@@datadir,${datadir},g' ${D}${sysconfdir}/netdata/netdata.conf |
| 60 | 64 | ||
| 65 | # Stop sending anonymous statistics to Google Analytics | ||
| 66 | if ${@bb.utils.contains('PACKAGECONFIG', 'anonymous', 'true', 'false', d)}; then | ||
| 67 | touch ${D}${sysconfdir}/netdata/.opt-out-from-anonymous-statistics | ||
| 68 | fi | ||
| 69 | |||
| 61 | install --group netdata --owner netdata --directory ${D}${localstatedir}/cache/netdata | 70 | install --group netdata --owner netdata --directory ${D}${localstatedir}/cache/netdata |
| 62 | install --group netdata --owner netdata --directory ${D}${localstatedir}/lib/netdata | 71 | install --group netdata --owner netdata --directory ${D}${localstatedir}/lib/netdata |
| 63 | 72 | ||
