Sophie

Sophie

distrib > PLD > ra > i686 > media > dist > by-pkgid > 47005976373e5b8c156c45c4c67f977b > scriptlet

zsh-4.0.6-3.i686.rpm

PREIN

/bin/sh
rm -rf /usr/share/zsh/latest
ln -s /usr/share/zsh/4.0.6 /usr/share/zsh/latest

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	grep -v '^/bin/zsh$' /etc/shells > /etc/shells.new
	mv -f /etc/shells.new /etc/shells
fi
rm -rf /usr/share/zsh/latest

POSTIN

/bin/sh
if [ ! -f /etc/shells ]; then
	echo "/bin/zsh" >> /etc/shells
else
	grep -q '^/bin/zsh$' /etc/shells || echo "/bin/zsh" >> /etc/shells
fi
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c /usr/share/info > /dev/null 2>&1

POSTUN

/bin/sh
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c /usr/share/info > /dev/null 2>&1