1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/netdata_ynh.git synced 2024-09-03 19:46:33 +02:00

Don't use ACL if not supported (fixes #8)

This commit is contained in:
Jimmy Monin 2018-01-18 18:43:38 +01:00
parent 24025e8ed2
commit d42445eed7

View file

@ -22,10 +22,12 @@ configure_netdata() {
flush privileges;"
fi
# Give dovecot privileges to netdata user to monitor Dovecot
# Need dovecot 2.2.16+
setfacl -m u:netdata:rw /var/run/dovecot/stats
if type "setfacl" > /dev/null ; then
# Give dovecot privileges to netdata user to monitor Dovecot
# Need dovecot 2.2.16+
setfacl -m u:netdata:rw /var/run/dovecot/stats
fi
# Add netdata to the adm group to access web logs
usermod -a -G adm netdata