Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 3e8925bae0f1a3e1fa9bd90ec090e0d5 > scriptlet

ksh-20110630-1.fc14.x86_64.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