diff options
| -rw-r--r-- | meta-webserver/recipes-webadmin/netdata/netdata_1.32.1.bb | 8 |
1 files changed, 3 insertions, 5 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 6824dd7257..dbce1c432f 100644 --- a/meta-webserver/recipes-webadmin/netdata/netdata_1.32.1.bb +++ b/meta-webserver/recipes-webadmin/netdata/netdata_1.32.1.bb | |||
| @@ -20,9 +20,8 @@ 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 ??= "\ | 23 | # Stop sending anonymous statistics to Google Analytics |
| 24 | anonymous \ | 24 | NETDATA_ANONYMOUS ??= "enabled" |
| 25 | " | ||
| 26 | 25 | ||
| 27 | inherit pkgconfig autotools-brokensep useradd systemd | 26 | inherit pkgconfig autotools-brokensep useradd systemd |
| 28 | 27 | ||
| @@ -62,8 +61,7 @@ do_install:append() { | |||
| 62 | sed -i -e 's,@@libdir,${libexecdir},g' ${D}${sysconfdir}/netdata/netdata.conf | 61 | sed -i -e 's,@@libdir,${libexecdir},g' ${D}${sysconfdir}/netdata/netdata.conf |
| 63 | sed -i -e 's,@@datadir,${datadir},g' ${D}${sysconfdir}/netdata/netdata.conf | 62 | sed -i -e 's,@@datadir,${datadir},g' ${D}${sysconfdir}/netdata/netdata.conf |
| 64 | 63 | ||
| 65 | # Stop sending anonymous statistics to Google Analytics | 64 | if [ "${NETDATA_ANONYMOUS}" = "enabled" ]; then |
| 66 | if ${@bb.utils.contains('PACKAGECONFIG', 'anonymous', 'true', 'false', d)}; then | ||
| 67 | touch ${D}${sysconfdir}/netdata/.opt-out-from-anonymous-statistics | 65 | touch ${D}${sysconfdir}/netdata/.opt-out-from-anonymous-statistics |
| 68 | fi | 66 | fi |
| 69 | 67 | ||
