Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > media > contrib-updates > by-pkgid > 47cffb4fb0018bf1352a9a705347ef4a > scriptlet

oar-node-2.4.3-1mdv2010.1.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