1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-07-28 04:34:03 +00:00

Add CAP_NET_RAW on fping6

Prevents `validate.php` from complaining.
This commit is contained in:
Jonathan Senecal 2018-09-21 15:18:19 -04:00
parent 133b1b4693
commit 5eb35a1e55

View file

@ -145,6 +145,7 @@ EOL
# Config : Fping
echo "/usr/sbin/fping -6 \$@" > /usr/sbin/fping6
chmod +x /usr/sbin/fping6
setcap cap_net_raw+ep /usr/sbin/fping6
cat > ${LIBRENMS_PATH}/config.d/fping.php <<EOL
<?php
\$config['fping'] = "/usr/sbin/fping";