Izmjene za Lintian:
[postfix-cn.git] / make-aliases-gecos.sh
diff --git a/make-aliases-gecos.sh b/make-aliases-gecos.sh
deleted file mode 100755 (executable)
index f831cf4..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-set -e
-
-PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
-
-[ -x /usr/sbin/postalias ] || exit 0
-[ -f /etc/postfix/main.cf ] || exit 0
-gecos="/var/lib/postfix-cn/aliases_gecos"
-grep -q "hash:$gecos" /etc/postfix/main.cf || exit 0
-
-[ -d /var/lib/postfix-cn/ ] || exit 0
-
-# Load CARNet Tools
-. /usr/share/carnet-tools/functions.sh
-
-getent passwd | awk -F: '
-        $3 >= 100 && $1 != "nobody" && $5 \
-        {
-                split($5, g, ",");
-               if (g[1]=="") {next};
-                gsub(/ /, ".", g[1]);
-                print tolower(g[1]) ": " $1;
-        }' > $gecos.dpkg-tmp.$$
-
-
-if ! cmp -s $gecos.dpkg-tmp.$$ $gecos > /dev/null; then
-  cp_mv $gecos.dpkg-tmp.$$ $gecos
-  postalias hash:$gecos
-else
-  rm -f $gecos.dpkg-tmp.$$
-fi