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

Adapt dovecot configuration for Buster

This commit is contained in:
Jimmy Monin 2020-04-26 16:58:03 +02:00
parent 2770f77f10
commit fdbbc77f16

View file

@ -35,8 +35,15 @@ touch /opt/netdata/etc/netdata/.opt-out-from-anonymous-statistics
if type "setfacl" > /dev/null ; then
# Give dovecot privileges to netdata user to monitor Dovecot
# Need dovecot 2.2.16+
if [ -f /var/run/dovecot/stats ] ; then
# Until Debian Strech
setfacl -m u:netdata:rw /var/run/dovecot/stats
fi
if [ -f /var/run/dovecot/old-stats ] ; then
# From Debian Buster
setfacl -m u:netdata:rw /var/run/dovecot/old-stats
fi
fi
# Add netdata to the adm group to access web logs
usermod -a -G adm netdata