]> gitweb.fluxo.info Git - puppet-ejabberd.git/commitdiff
should not be readable by everyone
authormh <mh@immerda.ch>
Sat, 1 Dec 2012 12:35:50 +0000 (13:35 +0100)
committermh <mh@immerda.ch>
Sat, 1 Dec 2012 12:35:50 +0000 (13:35 +0100)
files/munin/ejabberd_registrations.cron

index 34caf223c71b57981f5b57c2336b5d8e55359f4e..fc9de3e1e8a0a00d986e2137fb340f837a9f5684 100644 (file)
@@ -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