Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > c948bc3a291ae2d8194c0b2edfb264c0 > scriptlet

ksh-20110630-1.fc14.i686.rpm

POSTIN

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

POSTUN

/bin/sh
if [ ! -f /bin/ksh ]; then
	sed -i '/^\/bin\/ksh$/ d' /etc/shells
fi