Sophie

Sophie

distrib > PLD > ra > i686 > media > dist > by-pkgid > 2417e0b39da23035516411373f506a95 > scriptlet

apache-mod_dav-1.0.3-5.i686.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	/usr/sbin/apxs -e -A -n dav /usr/lib/apache/libdav.so 1>&2
	grep -v "^Include.*mod_dav.conf" /etc/httpd/httpd.conf > \
		/etc/httpd/httpd.conf.tmp
	mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
	if [ -f /var/lock/subsys/httpd ]; then
		/etc/rc.d/init.d/httpd restart 1>&2
	fi
fi

POSTIN

/bin/sh
/usr/sbin/apxs -e -a -n dav /usr/lib/apache/libdav.so 1>&2
if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_dav.conf" /etc/httpd/httpd.conf; then
	echo "Include /etc/httpd/mod_dav.conf" >> /etc/httpd/httpd.conf
fi
if [ -f /var/lock/subsys/httpd ]; then
	/etc/rc.d/init.d/httpd restart 1>&2
fi