Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 885c02b522d9c7f0c5c9cb6d3a426dde > scriptlet

lighttpd-1.4.28-6.2.mga1.i586.rpm

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