Skip to content

Commit

Permalink
added modification update in index
Browse files Browse the repository at this point in the history
  • Loading branch information
athalhammer committed Jan 2, 2024
1 parent d6919a1 commit bc64a3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpi/raspberry-danker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ VER=${filename//$PROJECT_LINKS/}
aws s3 cp s3://"$S3_BUCKET/$INDEX_FILE" .
sed "s/VERSION/$VER/" < ./rpi/template > tmp
perl -i -p0e 's/ "distribution":\[/`cat tmp`/se' "$INDEX_FILE"
date=$(date -I)
sed "s/\"dateModified\": \"\(.*\)\",/\"dateModified\": \"$date\",/" -i index.html
aws s3 cp "$INDEX_FILE" s3://"$S3_BUCKET"/ --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
aws s3 cp "$filename.rank.bz2" s3://"$S3_BUCKET"/ --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
aws s3 cp "$filename.stats.txt" s3://"$S3_BUCKET"/ --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers

0 comments on commit bc64a3f

Please sign in to comment.