Sophie

Sophie

distrib > Mandriva > 7.1 > i586 > by-pkgid > e4a0809919908e089e08b02d75798868 > scriptlet

zsh-3.1.6dev22-2mdk.i586.rpm

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