Fix install if system does not have ebpf.plugin (#9809)
Sander Klein committed
Aug 25, 2020 at 07:10 UTC
20f728fd5292cff1d4fa59c828dae932c2e0515c
1 file changed
+3
-1
contrib/debian/netdata.postinst
+3
-1
@@ -59,7 +59,9 @@ case "$1" in
59
chmod 4750 /usr/libexec/netdata/plugins.d/slabinfo.plugin
60
chmod 4750 /usr/libexec/netdata/plugins.d/cgroup-network
61
chmod 4750 /usr/libexec/netdata/plugins.d/nfacct.plugin
62
- chmod 4750 /usr/libexec/netdata/plugins.d/ebpf.plugin
62
+
63
+ # Workaround if system does not have ebpf.plugin
64
+ chmod -f 4750 /usr/libexec/netdata/plugins.d/ebpf.plugin || true
65
66
# Workaround for other plugins not installed directly by this package
67
chmod -f 4750 /usr/libexec/netdata/plugins.d/freeipmi.plugin || true