#!/bin/sh set -e 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 # Automatically added by dh_installsysusers/14.1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then systemd-sysusers ${DPKG_ROOT:+--root="$DPKG_ROOT"} ident2.conf fi # End automatically added section # Automatically added by dh_installtmpfiles/14.1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then systemd-tmpfiles ${DPKG_ROOT:+--root="$DPKG_ROOT"} --create ident2.conf fi # End automatically added section