Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 7b4c0a8c2d1c09e3f33307d8f233c557 > scriptlet

zsh-4.2.6-9.el5.x86_64.rpm

PREUN

/bin/sh
if [ "$1" = 0 ] ; then
    /sbin/install-info --delete /usr/share/info/zsh.info.gz /usr/share/info/dir \
	--entry="* zsh: (zsh).			An enhanced bourne shell."
fi

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

/sbin/install-info /usr/share/info/zsh.info.gz /usr/share/info/dir \
	--entry="* zsh: (zsh).			An enhanced bourne shell."

POSTUN

/bin/sh
if [ "$1" = 0 ] ; then
    if [ -f /etc/shells ] ; then
    	TmpFile=`/bin/mktemp /tmp/.zshrpmXXXXXX`
    	grep -v '^/bin/zsh$' /etc/shells > $TmpFile
    	cp -f $TmpFile /etc/shells
    	rm -f $TmpFile
    	chmod 644 /etc/shells
    fi
fi