Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > cd6e42bb2eb3b38d4f287adb1d890b83 > scriptlet

yash-2.35-1.fc18.i686.rpm

POSTIN

/bin/sh
if [ -f /etc/shells ]
then
	grep -q '^/bin/yash$' /etc/shells || echo '/bin/yash' >> /etc/shells
else
	echo '/bin/yash' > /etc/shells
fi
exit 0

POSTUN

/bin/sh
[ "$1" = 0 ] || exit 0
[ -f /etc/shells ] || exit 0
sed -i -e '\@/bin/yash$@d' /etc/shells
exit 0