Permalink
Browse files
Removing vagrant processing from build script
- Loading branch information
Showing
with
1 addition
and
8 deletions.
-
+1
−8
bin/perms.sh
|
@@ -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 |
|
|