#!/bin/sh # postinst script for libnss-tacplus # # see: dh_installdeb(1) set -e case "$1" in configure) # Add tacplus to /etc/nsswitch.conf, since it's necessary # for this package, and won't break anything else. Do nothing # if tacplus is already present in the passwd line if [ -e "/etc/nsswitch.conf" ]; then sed -i -E -e '/tacplus\s/b' \ -e '/^passwd:/s/(compat|files)/tacplus &/' /etc/nsswitch.conf sed -i -E -e '/tacplus\s/b' \ -e '/^group:/s/(compat|files)/tacplus &/' /etc/nsswitch.conf fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0