summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/munin/ejabberd_registrations.cron2
1 files changed, 2 insertions, 0 deletions
diff --git a/files/munin/ejabberd_registrations.cron b/files/munin/ejabberd_registrations.cron
index 34caf22..fc9de3e 100644
--- a/files/munin/ejabberd_registrations.cron
+++ b/files/munin/ejabberd_registrations.cron
@@ -3,4 +3,6 @@
for host in `cat /etc/munin/plugin-conf.d/ejabberd_registrations.conf | grep env.vhosts | sed 's/env.vhosts //'`; do
stat_file="/var/lib/munin/plugin-state/ejabberd_registrations_${host}"
ejabberdctl registered-users $host > $stat_file
+ chgrp munin $stat_file
+ chmod o-rwx $stat_file
done