[Pkg-nagios-changes] [pkg-nagios] r19 - nagios2/trunk/debian

Marc Haber zugschlus at costa.debian.org
Tue Dec 20 19:25:32 UTC 2005


Author: zugschlus
Date: 2005-12-20 19:25:31 +0000 (Tue, 20 Dec 2005)
New Revision: 19

Modified:
   nagios2/trunk/debian/nagios2-common.postinst
   nagios2/trunk/debian/rules
Log:
make sure that /etc/nagios/resource.cfg shows up in the target system
as root:Debian-nagios 640


Modified: nagios2/trunk/debian/nagios2-common.postinst
===================================================================
--- nagios2/trunk/debian/nagios2-common.postinst	2005-12-20 19:22:35 UTC (rev 18)
+++ nagios2/trunk/debian/nagios2-common.postinst	2005-12-20 19:25:31 UTC (rev 19)
@@ -7,4 +7,9 @@
                 --disabled-login --force-badname Debian-nagios2 > /dev/null
 fi
 
+if [ "$1" = "configure" ]; then
+	chown root:Debian-nagios /etc/nagios/resource.cfg
+	chmod 640 /etc/nagios/resource.cfg
+fi
+
 #DEBHELPER#

Modified: nagios2/trunk/debian/rules
===================================================================
--- nagios2/trunk/debian/rules	2005-12-20 19:22:35 UTC (rev 18)
+++ nagios2/trunk/debian/rules	2005-12-20 19:25:31 UTC (rev 19)
@@ -125,7 +125,7 @@
 	dh_installinit 	     --name nagios2 -- defaults 30 18
 	#chmod +x $(maindir)/debian/nagios-common/usr/lib/nagios/plugins/check-imap
 	#chmod +x $(maindir)/debian/nagios-common/usr/lib/cgi-bin/nagios/traceroute.cgi
-	#chmod 660 $(maindir)/debian/nagios-common/etc/nagios/resource.cfg
+	chmod 600 $(maindir)/debian/nagios-common/etc/nagios/resource.cfg
 	#rm -f $(maindir)/debian/nagios-common/etc/nagios/hosts.cfg
 	dh_link              -i usr/share/nagios-common/htdocs/docs usr/share/doc/nagios-common/html
 	dh_compress          -i




More information about the Pkg-nagios-changes mailing list