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:
parent
2770f77f10
commit
fdbbc77f16
1 changed files with 7 additions and 0 deletions
|
@ -35,8 +35,15 @@ touch /opt/netdata/etc/netdata/.opt-out-from-anonymous-statistics
|
||||||
if type "setfacl" > /dev/null ; then
|
if type "setfacl" > /dev/null ; then
|
||||||
# Give dovecot privileges to netdata user to monitor Dovecot
|
# Give dovecot privileges to netdata user to monitor Dovecot
|
||||||
# Need dovecot 2.2.16+
|
# Need dovecot 2.2.16+
|
||||||
|
if [ -f /var/run/dovecot/stats ] ; then
|
||||||
|
# Until Debian Strech
|
||||||
setfacl -m u:netdata:rw /var/run/dovecot/stats
|
setfacl -m u:netdata:rw /var/run/dovecot/stats
|
||||||
fi
|
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
|
# Add netdata to the adm group to access web logs
|
||||||
usermod -a -G adm netdata
|
usermod -a -G adm netdata
|
||||||
|
|
Loading…
Add table
Reference in a new issue