Skip to content

Commit

Permalink
netdata: fix for commit 8554624
Browse files Browse the repository at this point in the history
The previous commit was using a PACKAGECONFIG to enable or disable
the sending of anonymous data to Google Analytics.
This was giving QA issues.

Now the variable 'NETDATA_ANONYMOUS' is used to enable or disable
the opt-out.

Signed-off-by: Jan Vermaete <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
vermaete authored and kraj committed Dec 24, 2021
1 parent b70f2d9 commit bbfdda1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions meta-webserver/recipes-webadmin/netdata/netdata_1.32.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ UPSTREAM_CHECK_URI = "https://github.com/netdata/netdata/releases"

S = "${WORKDIR}/${BPN}-v${PV}"

PACKAGECONFIG ??= "\
anonymous \
"
# Stop sending anonymous statistics to Google Analytics
NETDATA_ANONYMOUS ??= "enabled"

inherit pkgconfig autotools-brokensep useradd systemd

Expand Down Expand Up @@ -62,8 +61,7 @@ do_install:append() {
sed -i -e 's,@@libdir,${libexecdir},g' ${D}${sysconfdir}/netdata/netdata.conf
sed -i -e 's,@@datadir,${datadir},g' ${D}${sysconfdir}/netdata/netdata.conf

# Stop sending anonymous statistics to Google Analytics
if ${@bb.utils.contains('PACKAGECONFIG', 'anonymous', 'true', 'false', d)}; then
if [ "${NETDATA_ANONYMOUS}" = "enabled" ]; then
touch ${D}${sysconfdir}/netdata/.opt-out-from-anonymous-statistics
fi

Expand Down

0 comments on commit bbfdda1

Please sign in to comment.