migration from private to rsa
[external/bash.git] / debian / bash.postinst
1 #! /bin/bash
2
3 set -e
4
5 # the symlink is in the package now. So this should never happen ...
6 if [ ! -e /bin/sh ]; then
7     ln -s bash /bin/sh
8 fi
9
10 update-alternatives --install \
11     /usr/share/man/man7/builtins.7.gz \
12     builtins.7.gz \
13     /usr/share/man/man7/bash-builtins.7.gz \
14     10 \
15   || true
16
17 if [ "$1" = configure ] && dpkg --compare-versions "$2" le 3.2-3 \
18     && which add-shell >/dev/null
19 then
20     add-shell /bin/bash
21     add-shell /bin/rbash
22 fi
23
24 #DEBHELPER#
25
26 exit 0