[Pkg-nagios-devel] nagios postinst,1.1.1.1,1.2

seanius@haydn.debian.org seanius@haydn.debian.org


Update of /cvsroot/pkg-nagios/nagios
In directory haydn:/org/alioth.debian.org/chroot/home/users/seanius/tmp/cvs-serv27134

Modified Files:
	postinst 
Log Message:
- removed one last reference to /var/cache/nagios 
- removed init script code, added #DEBHELPER# line, which automagically
  includes the debhelper initscript code from dh_installinit

the default config files prevent nagios from automagically starting
up, but evertything else seems to be working.  i don't know what's changed
since the current version.  we might need to specify the runlevels to
dh_instalinit too, as well as verify the mysql/pgsql install setups.



Index: postinst
===================================================================
RCS file: /cvsroot/pkg-nagios/nagios/postinst,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- postinst	31 Oct 2004 09:59:29 -0000	1.1.1.1
+++ postinst	1 Nov 2004 04:01:26 -0000	1.2
@@ -181,22 +181,7 @@
 
 # Make sure the config file is readable by both nagios
 # and apache
-chown -R nagios.www-data /var/log/nagios /etc/nagios /var/run/nagios /var/cache/nagios
+chown -R nagios.www-data /var/log/nagios /etc/nagios /var/run/nagios 
 chmod 750 /etc/nagios/cgi.cfg
 
-if [ -x /etc/init.d/nagios ]; then
-    if [ -L /etc/rc`runlevel | sed 's@.* @@'`.d/S20nagios ]; then
-	# Wrong startlevel! Remove
-	update-rc.d -f nagios remove 2 > /dev/null
-    fi
-
-    if [ ! -L /etc/rc`runlevel | sed 's@.* @@'`.d/S21nagios ]; then
-	# Correct start links don't exists
-	update-rc.d nagios defaults 21 19 > /dev/null
-    fi
-
-    invoke-rc.d nagios start
-fi
-
-exit 0
-
+#DEBHELPER#