blob: 06253d760a0fcda0f9d59213e53fe53004fc2b70 (
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
33
|
#!/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
|