Select most recent ISO in VirtualBox scripts

Instead of sorting ISO images under virtualbox/iso/ alphabetically,
select the one with the most recent modification timestamp.
This commit is contained in:
Dmitry Borodaenko 2013-08-08 14:34:00 -07:00
parent 6e614c5c36
commit 85ebe12fe6

View File

@ -21,7 +21,7 @@
cluster_size=3
# Get the first available ISO from the directory 'iso'
iso_path=`ls -1 iso/*.iso 2>/dev/null | head -1`
iso_path=`ls -1t iso/*.iso 2>/dev/null | head -1`
# Every Fuel Web machine name will start from this prefix
vm_name_prefix=fuel-web-