Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 3c0b2a3abbcbbd0714b17a3718b7df72 > scriptlet

munin-1.3.2-7.noarch.rpm

Triggers

apache1 >= 1.3.33-2

/bin/sh
 
 
if [ -n "" ] || ([ "$1" = "1" ] && [ "$2" = "1" ]) && [ -d /etc/apache/conf.d ]; then
	ln -sf /etc/munin/apache.conf /etc/apache/conf.d/99_munin.conf
fi
# reload apache if the config symlink is there
if [ -L /etc/apache/conf.d/99_munin.conf ]; then
	# additionally don't reload if target package (the webserver) is upgraded, as webserver is restarted anyway in %post 
	if [ "$2" != "2" ] && [ -f /var/lock/subsys/apache ]; then
		/etc/rc.d/init.d/apache reload 1>&2
	fi
fi

apache1 >= 1.3.33-2

/bin/sh
 
 
# remove link if either of the packages are gone 
if [ "$1" = "0" ] || [ "$2" = "0" ]; then 
	if [ -L /etc/apache/conf.d/99_munin.conf ]; then 
		rm -f /etc/apache/conf.d/99_munin.conf 
		if [ -f /var/lock/subsys/apache ]; then 
			/etc/rc.d/init.d/apache reload 1>&2 
		fi 
	fi 
fi

apache >= 2.0.0

/bin/sh
 
 
if [ -n "" ] || ([ "$1" = "1" ] && [ "$2" = "1" ]) && [ -d /etc/httpd/httpd.conf ]; then
	ln -sf /etc/munin/apache.conf /etc/httpd/httpd.conf/99_munin.conf
fi
# reload apache if the config symlink is there
if [ -L /etc/httpd/httpd.conf/99_munin.conf ]; then
	# additionally don't reload if target package (the webserver) is upgraded, as webserver is restarted anyway in %post 
	if [ "$2" != "2" ] && [ -f /var/lock/subsys/httpd ]; then
		/etc/rc.d/init.d/httpd reload 1>&2
	fi
fi

apache >= 2.0.0

/bin/sh
 
 
# remove link if either of the packages are gone 
if [ "$1" = "0" ] || [ "$2" = "0" ]; then 
	if [ -L /etc/httpd/httpd.conf/99_munin.conf ]; then 
		rm -f /etc/httpd/httpd.conf/99_munin.conf 
		if [ -f /var/lock/subsys/httpd ]; then 
			/etc/rc.d/init.d/httpd reload 1>&2 
		fi 
	fi 
fi