Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 7620026e54ba64521f9d312e97c922fe > files > 29

postfix-2.2.5-7mdk.src.rpm

#!/bin/sh
# update resolv.conf in postfix chroot environment
chroot_resolv=$(postconf -h queue_directory)/etc/resolv.conf
[ -f ${chroot_resolv} -a /etc/resolv.conf -nt ${chroot_resolv} ] &&
	cp -pf /etc/resolv.conf /var/spool/postfix/etc/resolv.conf > /dev/null

# 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