summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_rsync_remote_results.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/reproducible_html_rsync_remote_results.sh b/bin/reproducible_html_rsync_remote_results.sh
index d3df7b19..4e7cf76e 100755
--- a/bin/reproducible_html_rsync_remote_results.sh
+++ b/bin/reproducible_html_rsync_remote_results.sh
@@ -15,10 +15,16 @@ rsync_remote_results() {
for PROJECT in coreboot openwrt netbsd ; do
echo "$(date -u) - Starting to rsync results for '$PROJECT'."
local RESULTS=$(mktemp --tmpdir=$TEMPDIR -d reproducible-rsync-XXXXXXXXX)
+ # copy the new results from build node to webserver node
rsync -r -v -e ssh profitbricks-build3-amd64.debian.net:$BASE/$PROJECT/ $RESULTS
- mv $BASE/$PROJECT ${RESULTS}.tmp
chmod 775 $RESULTS
+ # move old results out of the way
+ mv $BASE/$PROJECT ${RESULTS}.tmp
+ # preserve images and css
+ find ${RESULTS}.tmp -name "*css" -o -name "*png" -o -name "*jpg" -exec cp -v {} $RESULTS/ \;
+ # make the new results visible
mv $RESULTS $BASE/$PROJECT
+ # delete the old results
rm ${RESULTS}.tmp -r
echo "$(date -u) - $REPRODUCIBLE_URL/$PROJECT has been updated."
done