POSTIN
/bin/sh
if [ ! -f /etc/shells ]; then
echo "/bin/zsh" > /etc/shells
else
grep '^/bin/zsh' /etc/shells > /dev/null || echo "/bin/zsh" >> /etc/shells
fi
if [[ -f /usr/share/info/zsh.info.bz2 ]];then /sbin/install-info /usr/share/info/zsh.info.bz2 --dir=/usr/share/info/dir;fi
POSTUN
/bin/sh
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
if [ "$1" = "0" ]; then if [[ -f /usr/share/info/zsh.info.bz2 ]];then /sbin/install-info /usr/share/info/zsh.info.bz2 --dir=/usr/share/info/dir --remove ;fi; fi