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