| 1 |
#! /bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
ua() { |
| 6 |
update-alternatives --install /usr/bin/which which /usr/bin/which.debianutils 0 \ |
| 7 |
--slave /usr/share/man/man1/which.1.gz which.1.gz /usr/share/man/man1/which.debianutils.1.gz \ |
| 8 |
--slave /usr/share/man/de/man1/which.1.gz which.de1.gz /usr/share/man/de/man1/which.debianutils.1.gz \ |
| 9 |
--slave /usr/share/man/es/man1/which.1.gz which.es1.gz /usr/share/man/es/man1/which.debianutils.1.gz \ |
| 10 |
--slave /usr/share/man/fr/man1/which.1.gz which.fr1.gz /usr/share/man/fr/man1/which.debianutils.1.gz \ |
| 11 |
--slave /usr/share/man/it/man1/which.1.gz which.it1.gz /usr/share/man/it/man1/which.debianutils.1.gz \ |
| 12 |
--slave /usr/share/man/ja/man1/which.1.gz which.ja1.gz /usr/share/man/ja/man1/which.debianutils.1.gz \ |
| 13 |
--slave /usr/share/man/pl/man1/which.1.gz which.pl1.gz /usr/share/man/pl/man1/which.debianutils.1.gz \ |
| 14 |
--slave /usr/share/man/sl/man1/which.1.gz which.sl1.gz /usr/share/man/sl/man1/which.debianutils.1.gz |
| 15 |
} |
| 16 |
|
| 17 |
if test -z "$2" && test ! -f "$DPKG_ROOT/etc/shells" |
| 18 |
then |
| 19 |
cp -pZ "$DPKG_ROOT/usr/share/debianutils/shells" "$DPKG_ROOT/etc/shells" || cp -p "$DPKG_ROOT/usr/share/debianutils/shells" "$DPKG_ROOT/etc/shells" |
| 20 |
fi |
| 21 |
|
| 22 |
case "$1" in |
| 23 |
(configure) |
| 24 |
update-shells |
| 25 |
ua |
| 26 |
;; |
| 27 |
(triggered) |
| 28 |
update-shells |
| 29 |
;; |
| 30 |
|
| 31 |
(abort-upgrade|abort-remove|abort-deconfigure) |
| 32 |
ua |
| 33 |
;; |
| 34 |
|
| 35 |
(*) |
| 36 |
echo "postinst called with unknown argument \`$1'" >&2 |
| 37 |
exit 1 |
| 38 |
;; |
| 39 |
esac |
| 40 |
|
| 41 |
#DEBHELPER# |