blob: d0714303f8d385cc2c556f9cec0df31c86e5edec (
plain)
1
2
3
4
5
6
7
|
#! /bin/sh
# update postfix copy of resolv.conf; only default instance is handled
file=/etc/resolv.conf queue=/var/spool/postfix
if [ -d $queue${file%/*} ] && [ -f /etc/postfix/main.cf ]
then # just refresh, glibc pick it up automatically
[ ! -f $file ] && rm -f $queue$file || cp -pLu $file $queue$file
fi
|