Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > contrib-backports > by-pkgid > b8d65c041afa2a2504c428f8b661f3d1 > scriptlet

rssh-2.3.2-9mdv2009.1.x86_64.rpm

POSTIN

/bin/sh
# 2.3.2-8mdv added Subversion support, which requires adding another binary
# digit to the user configuration lines in rssh.conf.  When upgrading, run
# the conf_convert script to do so.
if [ $1 = 2 ]; then
    echo 'Adjusting /etc/rssh.conf for file format change'
    /usr/share/rssh/conf_convert /etc/rssh.conf \
        > /etc/rssh.conf.tmp
    if cmp /etc/rssh.conf.tmp /etc/rssh.conf >/dev/null ; then
        rm -f /etc/rssh.conf.tmp
    else
        mv -f /etc/rssh.conf.tmp /etc/rssh.conf
    fi
fi