A new user interface for you! Read more...

File set_nginx_1.8.latest.sh of Package dba-nginx-180-stream

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