Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > e95fa4ed8748736458c3ce7ac7e7747e > scriptlet

oar-node-2.3.4-1mdv2010.0.noarch.rpm

PREUN

/bin/sh
/usr/share/rpm-helper/del-service oar $1 oar-node

POSTIN

/bin/sh
# create oar sshd keys
if [ ! -f /etc/oar/oar_ssh_host_rsa_key ]; then
    rm -f /etc/oar/oar_ssh_host_rsa_key.pub
    cp /etc/ssh/ssh_host_rsa_key \
        /etc/oar/oar_ssh_host_rsa_key
    cp /etc/ssh/ssh_host_rsa_key.pub \
        /etc/oar/oar_ssh_host_rsa_key.pub
fi

if [ ! -f /etc/oar/oar_ssh_host_dsa_key ]; then
    rm -f /etc/oar/oar_ssh_host_dsa_key.pub
    cp /etc/ssh/ssh_host_dsa_key \
        /etc/oar/oar_ssh_host_dsa_key
    cp /etc/ssh/ssh_host_dsa_key.pub \
        /etc/oar/oar_ssh_host_dsa_key.pub
fi

/usr/share/rpm-helper/add-service oar $1 oar-node