Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 02a618eb995fcb745c8eb65cf46cdab4 > scriptlet

zsh-4.3.2-2.amd64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	umask 022
	grep -v '^/bin/zsh$' /etc/shells > /etc/shells.new
	mv -f /etc/shells.new /etc/shells
fi

POSTIN

/bin/sh
umask 022
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
for i in zlogin zlogout zprofile zshenv zshrc; do
	[ -f /etc/$i ] && zsh -c "zcompile /etc/$i"
done

POSTUN

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