wok-6.x rev 14466

nagios: add pre_remove
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 27 09:26:24 2013 +0200 (2013-04-27)
parents 00ec8a4f1615
children 3f4d46548cfb
files nagios-doc/receipt nagios/receipt
line diff
     1.1 --- a/nagios-doc/receipt	Sat Apr 27 09:10:25 2013 +0200
     1.2 +++ b/nagios-doc/receipt	Sat Apr 27 09:26:24 2013 +0200
     1.3 @@ -13,6 +13,6 @@
     1.4  {
     1.5  	mkdir -p $fs/usr/share/nagios
     1.6  	# Put doc in separate package
     1.7 -	cp -pa $_pkg/usr/share/nagios/docs $fs/usr/share/nagios
     1.8 +	cp -a $install/usr/share/nagios/docs $fs/usr/share/nagios
     1.9  }
    1.10  
     2.1 --- a/nagios/receipt	Sat Apr 27 09:10:25 2013 +0200
     2.2 +++ b/nagios/receipt	Sat Apr 27 09:26:24 2013 +0200
     2.3 @@ -112,3 +112,7 @@
     2.4  	echo -e "Default login/password for the Web GUI is nagiosadmin/nagios"
     2.5  }
     2.6  
     2.7 +pre_remove()
     2.8 +{
     2.9 +	[ -z $1 ] && /etc/init.d/nagios stop
    2.10 +}