Skip to content

Commit

Permalink
Change over to md5sum to support centos as primary for builds and not…
Browse files Browse the repository at this point in the history
…ifications.
  • Loading branch information
Mason Packard committed Sep 8, 2016
1 parent 3c79a6c commit b18650f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/perms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ 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 $(md5 builds/$vagrant_key)
echo $(md5sum builds/$vagrant_key)

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

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

echo $(md5 builds/$ova_key)
echo $(md5sum builds/$ova_key)

ami_id=$(aws ec2 describe-images --owners $aws_acct_id --query 'reverse(sort_by(Images[?starts_with(Name, `import-ami`)], &CreationDate))[0].[ImageId]' --output text | tr -d '\n' )
echo "Publishing $ami_id to $aws_acct_id"
Expand Down

0 comments on commit b18650f

Please sign in to comment.