Sophie

Sophie

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

tmux-1.8-2.fc18.i686.rpm

POSTIN

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

POSTUN

/bin/sh
if [ $1 -eq 0 ] && [ -f /etc/shells ]; then
    sed -i '\!^/usr/bin/tmux$!d' /etc/shells
fi