]> arthur.barton.de Git - nagcollect.git/commitdiff
Added contrib/fix-usr-local.sh to fix permissions of /usr/local/
authorAlexander Barton <alex@barton.de>
Wed, 1 Sep 2010 13:54:00 +0000 (15:54 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 1 Sep 2010 13:54:00 +0000 (15:54 +0200)
This script fixes the permissions of directories and files installed
by NagCollect below /usr/local.

contrib/fix-usr-local.sh [new file with mode: 0755]

diff --git a/contrib/fix-usr-local.sh b/contrib/fix-usr-local.sh
new file mode 100755 (executable)
index 0000000..7744e04
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# NagCollect -- Nagios Data Collector for Passive Checks
+# Copyright (c)2009-2010 Alexander Barton, alex@barton.de
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+# Please read the file COPYING, README and AUTHORS for more information.
+#
+
+logger -t "fix-usr-local.sh" -s "starting ..."
+chmod 755 /usr/local /usr/local/etc /usr/local/sbin
+chmod 640 /usr/local/etc/nagcollect.conf
+chmod 755 /usr/local/sbin/nagcollect
+chmod -R a+rX /usr/local/lib/nagcollect
+logger -t "fix-usr-local.sh" -s "done."