summaryrefslogtreecommitdiffstats
path: root/shells/bash3/pkg-install
blob: b234a4db0e0a1da9e7e6b629a2d07173bea1b18b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# $FreeBSD$
#

case $2 in
POST-INSTALL)
  if ! grep -qs "^${PKG_PREFIX-/usr/local}/bin/bash\$" /etc/shells; then
    if [ `id -u` -eq 0 ]; then
      echo "${PKG_PREFIX-/usr/local}/bin/bash" >> /etc/shells
    else
      echo "Not root, please add ${PKG_PREFIX-/usr/local}/bin/bash to /etc/shells manually"
    fi
  fi
  ;;
esac
OpenPOWER on IntegriCloud