Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 67f7939d59b2948c7991890330d444e3 > scriptlet

tcsh-6.14-17.el5_5.2.x86_64.rpm

POSTIN

/bin/sh
if [ ! -f /etc/shells ]; then
	echo "/bin/tcsh" >> /etc/shells
	echo "/bin/csh"  >> /etc/shells
else
	grep -q '^/bin/tcsh$' /etc/shells || \
	echo "/bin/tcsh" >> /etc/shells
	grep -q '^/bin/csh$'  /etc/shells || \
	echo "/bin/csh"  >> /etc/shells
fi

POSTUN

/bin/sh
if [ ! -x /bin/tcsh ]; then
	grep -v '^/bin/tcsh$'  /etc/shells | \
	grep -v '^/bin/csh$' > /etc/shells.rpm
	cat /etc/shells.rpm > /etc/shells && rm /etc/shells.rpm
fi