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:
parent
24025e8ed2
commit
d42445eed7
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue