LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File set_nginx_1.10.latest.sh of Package dba-nginx-1101 (Project home:csbuild:DBA)

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