Sophie

Sophie

distrib > Mandriva > 7.1 > i586 > by-pkgid > 92b09f91f803d0cef819b9f128b67d4c > scriptlet

bash-2.04-3mdk.i586.rpm

POSTIN

/bin/sh

if [ ! -f /etc/shells ]; then
        echo "/bin/bash" > /etc/shells
else
        if ! grep '^/bin/bash$' /etc/shells > /dev/null; then
                echo "/bin/bash" >> /etc/shells
        fi
fi

POSTUN

/bin/sh
if [ "$1" = 0 ]; then
        grep -v '^/bin/bash' < /etc/shells > /etc/shells.new
        mv /etc/shells.new /etc/shells
fi