3 # NagCollect -- Nagios Data Collector for Passive Checks
4 # Copyright (c)2009-2010 Alexander Barton, alex@barton.de
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 # Please read the file COPYING, README and AUTHORS for more information.
13 logger -t "fix-usr-local.sh" -s "starting ..."
15 chown root:wheel /usr/local /usr/local/etc /usr/local/sbin
16 chmod 755 /usr/local /usr/local/etc /usr/local/sbin
18 chown root:wheel /usr/local/etc/nagcollect.conf
19 chmod 640 /usr/local/etc/nagcollect.conf
21 chown root:wheel /usr/local/sbin/nagcollect
22 chmod 755 /usr/local/sbin/nagcollect
24 chown -R root:wheel /usr/local/lib/nagcollect
25 chmod -R a+rX /usr/local/lib/nagcollect
27 logger -t "fix-usr-local.sh" -s "done."