POSTIN
/bin/sh
/sbin/install-info /usr/info/zsh.info.bz2 /usr/info/dir \
--entry="* ZSH: (zsh). The Z Shell Guide."
if [ ! -f /etc/shells ]; then
echo "/bin/zsh" > /etc/shells
else
grep '^/bin/zsh' /etc/shells > /dev/null || echo "/bin/zsh" >> /etc/shells
fi
POSTUN
/bin/sh
if [ $1 = 0 ]; then
/sbin/install-info --delete /usr/info/zsh.info.bz2 /usr/info/dir \
--entry="* ZSH: (zsh). The Z Shell Guide."
fi
if [ ! -x /bin/zsh ]; then
grep -v '^/bin/zsh$' /etc/shells | grep -v '^/bin/zsh$'> /etc/shells.rpm
mv /etc/shells.rpm /etc/shells
fi