From: Alexander Barton Date: Wed, 1 Sep 2010 13:54:00 +0000 (+0200) Subject: Added contrib/fix-usr-local.sh to fix permissions of /usr/local/ X-Git-Tag: rel-2~9 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=nagcollect.git;a=commitdiff_plain;h=f4c3fcbc9a7ebc55c24ccc643a85b51a0c674a11 Added contrib/fix-usr-local.sh to fix permissions of /usr/local/ This script fixes the permissions of directories and files installed by NagCollect below /usr/local. --- diff --git a/contrib/fix-usr-local.sh b/contrib/fix-usr-local.sh new file mode 100755 index 0000000..7744e04 --- /dev/null +++ b/contrib/fix-usr-local.sh @@ -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."