Sophie

Sophie

distrib > Scientific%20Linux > 5x > i386 > by-pkgid > 3d72d391f16f032d765a076f6545cbef > scriptlet

zsh-4.2.6-9.el5.i386.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