]> arthur.barton.de Git - nagcollect.git/blob - contrib/fix-usr-local.sh
Added contrib/fix-usr-local.sh to fix permissions of /usr/local/
[nagcollect.git] / contrib / fix-usr-local.sh
1 #!/bin/sh
2 #
3 # NagCollect -- Nagios Data Collector for Passive Checks
4 # Copyright (c)2009-2010 Alexander Barton, alex@barton.de
5 #
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.
11 #
12
13 logger -t "fix-usr-local.sh" -s "starting ..."
14 chmod 755 /usr/local /usr/local/etc /usr/local/sbin
15 chmod 640 /usr/local/etc/nagcollect.conf
16 chmod 755 /usr/local/sbin/nagcollect
17 chmod -R a+rX /usr/local/lib/nagcollect
18 logger -t "fix-usr-local.sh" -s "done."