updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / openbsd-pdksh-git / openbsd-pdksh-git.install
blob844a4e731ae2b02c304bb0520c86f9ce3e460528
1 post_install() {
2   if [ ! "`grep /bin/ksh etc/shells`" ]; then
3     echo "updating /etc/shells... done."
4     sed -i "s|/bin/bash|/bin/bash\n/bin/ksh|" etc/shells
5   else
6     sed -i "s|/usr/bin/ksh|/bin/ksh|" etc/shells
8     echo ""
9     echo ">> WARNING: /usr/bin/ksh has moved to /bin/ksh,"
10     echo ">> please update your user accounts as needed"
11     echo ""
12   fi
15 post_upgrade() {
16   post_install $1
19 pre_remove() {
20   echo -ne "\nupdating /etc/shells... "
21   sed -i "s|/bin/ksh||" etc/shells