summaryrefslogtreecommitdiffstats
path: root/makeself
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-09-05 22:59:19 +0300
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-09-05 22:59:19 +0300
commit419e92175d3873a2d171ab3df7f185c275dbdc50 (patch)
treeda5e13f88f2f985806ebd567c3fcd881fdd889f5 /makeself
parent5ce92a893246fd02f84460121243267c2253f5e2 (diff)
fping should be setuid to root to work when running as user netdata (static binary); #2665
Diffstat (limited to 'makeself')
-rwxr-xr-xmakeself/install-or-update.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/makeself/install-or-update.sh b/makeself/install-or-update.sh
index f822e7bcff..b64e7be335 100755
--- a/makeself/install-or-update.sh
+++ b/makeself/install-or-update.sh
@@ -149,6 +149,12 @@ do
fi
done
+# fix the fping binary
+if [ -f bin/fping ]
+then
+ run chown root:${NETDATA_GROUP} bin/fping
+ run chmod 4750 bin/fping
+fi
# -----------------------------------------------------------------------------
progress "starting netdata"