Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > 8b20e22a784d52fc3278d2e575284d81 > scriptlet

lighttpd-1.4.30-imdv2010.2.i586.rpm

PREUN

/bin/sh
/usr/share/rpm-helper/del-service lighttpd $1 lighttpd

POSTIN

/bin/sh
# Fix rights on logs after upgrade, else the server can not start
if [ $1 -gt 1 ]; then
	if grep '^server.username = "apache"' /etc/lighttpd/lighttpd.conf >/dev/null; then
		if [ `stat -c %U /var/log/lighttpd/` != "apache" ]; then
			chown -R apache /var/log/lighttpd/
		fi
	fi
fi

/usr/share/rpm-helper/add-service lighttpd $1 lighttpd