id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,distribution,status_field
2058,Automate pulling of weekly test builds for SoaS,mchua,sascha_silbe,"We're currently pulling weekly test builds onto sunjammer, in /srv/www-sugarlabs/download/soas/test, and would like to automate the process.

I'm not entirely sure how to write this cron job, but every Thursday at 11:59:59 GMT, we would like to...

 1. wget http://alt.fedoraproject.org/pub/alt/nightly-composes/soas/soas-i386-'''FOO'''.iso  ''# Get the latest i386 nightly compose from http://alt.fedoraproject.org/pub/alt/nightly-composes/soas/. There should only be one soas-i386 image. (FOO is whatever the datetime stamp of that image is... for instance, it may be 20060623.16 - store this variable for later use)''
 1. ln -s soas-i386-'''FOO'''.iso soas-i386-test-latest.iso ''# Update the symlink to point to the new image.''
 1. wget http://alt.fedoraproject.org/pub/alt/nightly-composes/soas/CHECKSUM-i386 ''# The SHA256 checksum for that iso - it will always be at this link''
 1. mv CHECKSUM-i386 soas-i386-'''FOO'''.sha ''# Rename the checksum so it matches the iso''
 1. ln -s soas-i386-'''FOO'''.sha soas-i386-test-latest-checksum.sha ''# Update the symlink to point to the new checksum''

In the end, http://download.sugarlabs.org/soas/test/ should have a new image-checksum pair under the image's original datetime-stamp-based name, and the symlinks for http://download.sugarlabs.org/soas/test/soas-i386-test-latest.iso and http://download.sugarlabs.org/soas/test/soas-i386-test-latest-checksum.sha should be updated to point to that newly-downloaded image-checksum pair.",task,closed,Unspecified by Maintainer,Unspecified by Release Team,infrastructure,Unspecified,Unspecified,fixed,,sdz pbrobinson,Unspecified,New
