Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 4f3f7307ad99fb9ed22504b6bceacdea > files > 26

postfix-2.1.1-0.2.100mdk.src.rpm

#!/bin/sh
chroot_resolv=$(postconf -h queue_directory)/etc/resolv.conf
if [ -f $chroot_resolv ]; then
grep -qs "# ppp temp entry" $chroot_resolv &&
	cp -pf /etc/resolv.conf $chroot_resolv
fi
# i have no way to check if we are not chrooted and resolv.conf changed, i'll reload it anyway
/usr/sbin/postfix reload 2>/dev/null || true