File set_mongodb_3.0.latest.sh of Package dba-mongodb-301

#!/bin/bash
#set -x
v=`ls -1d 3.0.? 3.0.?? 2>/dev/null|cut -d "." -f3 |sort -n |tail -1`
i=`ls -l 3.0.latest.bak* 2>/dev/null|wc -l`
test -L 3.0.latest && mv 3.0.latest 3.0.latest.bak.${i}
rc=`ln -fs 3.0.${v} 3.0.latest`
exit $rc