blob: 9541608cebf6131333dc6e292ace8c8dac600b37 (
plain)
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
30
31
32
|
#!/bin/sh
# postinst script for libnss-tacplus
#
# see: dh_installdeb(1)
set -e
case "$1" in
configure)
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# 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 '/tacplus/b' \
-e '/^passwd/s/compat/tacplus &/' /etc/nsswitch.conf
fi
#DEBHELPER#
exit 0
|