Linking to file is done on a server side script which recreate links to latest files and remove older in the end of the upload batch.

This commit is contained in:
Igor Pecovnik 2017-01-06 06:37:13 +01:00
parent 6b3836b20e
commit b623313d56

View File

@ -63,7 +63,6 @@ nice -n 19 bash -c "\
7za a -t7z -bd -m0=lzma2 -mx=3 -mfb=64 -md=32m -ms=on $filename ${version}.img armbian.txt *.asc sha256sum.sha >/dev/null 2>&1 ; \
find . -type f -not -name '*.7z' -print0 | xargs -0 rm -- ; \
while ! rsync -arP $CACHEDIR/$DESTIMG/. -e 'ssh -p 22' ${SEND_TO_SERVER}:/var/www/dl.armbian.com/${BOARD}/${subdir};do sleep 5;done; \
ssh ${SEND_TO_SERVER} \"cd /var/www/dl.armbian.com/${BOARD}; ln -fs ${subdir}/${version}.7z $linkname\"; \
rm -r $CACHEDIR/$DESTIMG" &
}