[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a

David GUENAULT dguenault at monitoring-fr.org
Tue Feb 28 22:10:32 UTC 2012


The following commit has been merged in the debian/master branch:
commit d29610d45bf89d579255ece460726a94cc3f12d8
Author: David GUENAULT <dguenault at monitoring-fr.org>
Date:   Thu Dec 29 11:56:50 2011 +0100

    FIX some folders permissions and group

diff --git a/contrib/alternative-installation/shinken-install/shinken.sh b/contrib/alternative-installation/shinken-install/shinken.sh
index 34c9b0c..bb49039 100755
--- a/contrib/alternative-installation/shinken-install/shinken.sh
+++ b/contrib/alternative-installation/shinken-install/shinken.sh
@@ -1074,7 +1074,16 @@ function install_multisite(){
 	rm -Rf $TARGET/etc/check_mk.d/*
 	cecho " > Fix www-data group" green
 	usermod -a -G $SKGROUP www-data 
-	service apache2 restart
+	chown -R $SKUSER:$SKGROUP $TARGET/etc/check_mk.d
+	chmod -R g+rwx $TARGET/etc/check_mk.d
+	chown -R $SKUSER:$SKGROUP $MKPREFIX/etc/conf.d
+	chmod -R g+rwx $MKPREFIX/etc/conf.d
+	service apache2 restart > /dev/null 2>&1
+	cecho " > Enable sudoers commands for check_mk" green
+	echo "# Needed for WATO - the Check_MK Web Administration Tool" >> /etc/sudoers
+	echo "Defaults:www-data !requiretty" >> /etc/sudoers
+	echo "www-data ALL = (root) NOPASSWD: $MKTARGET/check_mk --automation *" >> /etc/sudoers
+	/etc/init.d/sudo restart
 }
 
 # pnp4nagios

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list