Sophie

Sophie

distrib > Fedora > 20 > i386 > by-pkgid > 93bf030d2e75714a2d31d6436f78ac06 > scriptlet

fish-2.1.1-1.fc20.i686.rpm

POSTIN

/bin/sh
# Add fish to the list of allowed shells in /etc/shells
if [ "$1" = 1 ]; then
  if ! [ -f "/etc/shells" ] || ! grep -q '^/usr/bin/fish$' "/etc/shells"; then
    echo '/usr/bin/fish' >>"/etc/shells"
  fi
fi

POSTUN

/bin/sh
# Remove fish from the list of allowed shells in /etc/shells
if [ "$1" = 0 ]; then
  sed -i -e '\#^/usr/bin/fish$#d' "/etc/shells"
fi