1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/bin/sh
set -e
if ! id -u identd >/dev/null 2>&1; then
adduser --quiet --system --home /run/identd identd
fi
mkdir -p /run/identd
chmod 755 /run/identd
case "$1" in
configure)
# Update inetd.conf (first remove any existing, then add the new).
update-inetd --remove ident
update-inetd --group INFO --add \
"ident\t\tstream\ttcp\tnowait\tidentd /usr/sbin/ident2 ident2 -i -n"
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
|