5 PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
7 [ -x /usr/sbin/postalias ] || exit 0
8 [ -f /etc/postfix/main.cf ] || exit 0
9 gecos="/var/lib/postfix-cn/aliases_gecos"
10 grep -q "hash:$gecos" /etc/postfix/main.cf || exit 0
12 [ -d /var/lib/postfix-cn/ ] || exit 0
15 . /usr/share/carnet-tools/functions.sh
18 $3 >= 100 && $1 != "nobody" && $5 \
23 print tolower(g[1]) ": " $1;
24 }' < /etc/passwd > $gecos.dpkg-tmp.$$
27 if ! cmp -s $gecos.dpkg-tmp.$$ $gecos > /dev/null; then
28 cp_mv $gecos.dpkg-tmp.$$ $gecos
31 rm -f $gecos.dpkg-tmp.$$