Sophie

Sophie

distrib > Mageia > 8 > aarch64 > media > core-updates > by-pkgid > 08b30ca424f01ec1aefcf6c326e76fdb > scriptlet

lighttpd-1.4.59-1.2.mga8.aarch64.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/bin/systemd-tmpfiles --create lighttpd.conf 

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