Red Hat Bugzilla – Bug 115811
Resin startup doesn't sort version numbers correctly
Last modified: 2007-04-18 13:03:08 EDT
Description of problem:
[root@camden root]# ls /opt/resin
2.1.10 2.1.20 2.1.300 2.1.4 2.1.40
[root@camden root]# /bin/ls -d /opt/resin/* | sort -r | head -1
It should have picked '2.1.300'.
It needs to be doing a numeric sort on the 3rd field, and only look
for files named 2.1.x
Something like the following adapted code should work:
/bin/ls -d /opt/resin/2.1.* | sort -t . -k 3 -n -r | head -1
This is also relevant for tomcat.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
closing old tickets