Skip to content

Commit

Permalink
Removing vagrant processing from build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Nov 8, 2016
1 parent 4ceba6e commit c5ba555
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bin/perms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@

aws_acct_id="823003027569"
bucket="internet2-tier-appliance-us-west-1"
vagrant_key=$(aws s3api list-objects --bucket $bucket --query 'reverse(sort_by(Contents[?contains(Key, `vagrant`)], &LastModified))[0].[Key]' --output text | tr -d '\n' )
ova_key=$(aws s3api list-objects --bucket $bucket --query 'reverse(sort_by(Contents[?contains(Key, `ova`)], &LastModified))[0].[Key]' --output text | tr -d '\n' )

echo "Found $vagrant_key"
aws s3api put-object-acl --bucket $bucket --key $vagrant_key --acl public-read

echo "(https://s3-us-west-1.amazonaws.com/$bucket/$vagrant_key)"

echo $(md5sum builds/$vagrant_key)
ova_key=$(aws s3api list-objects --bucket $bucket --query 'reverse(sort_by(Contents[?contains(Key, `ova`)], &LastModified))[0].[Key]' --output text | tr -d '\n' )

echo "Found $ova_key"
aws s3api put-object-acl --bucket $bucket --key $ova_key --acl public-read
Expand Down

0 comments on commit c5ba555

Please sign in to comment.