fate-recv: make a symlink to previous report
authorMans Rullgard <mans@mansr.com>
Sun, 1 Aug 2010 21:41:21 +0000 (22:41 +0100)
committerMans Rullgard <mans@mansr.com>
Sun, 1 Aug 2010 21:41:21 +0000 (22:41 +0100)
fate-recv.sh

index b7dc122..aa2027b 100755 (executable)
@@ -79,6 +79,7 @@ mkdir $repdir
 gzip -9 *.log
 xz report
 cp -p summary report.xz *.log.gz $repdir
-rm -f $slotdir/latest
+rm -f $slotdir/previous
+test -e $slotdir/latest && mv $slotdir/latest $slotdir/previous
 ln -s $date $slotdir/latest
 cp lastpass ${lastpass}.new && mv ${lastpass}.new $lastpass