Skip to content

Commit

Permalink
Fix tootctl upgrade storage-schema S3 ACL (mastodon#13768)
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan authored and Mage committed Jan 14, 2022
1 parent 2bd061b commit dbd5b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mastodon/upgrade_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def upgrade_storage_s3(progress, attachment, style)
progress.log("Moving #{object.key} to #{new_object.key}") if options[:verbose]

begin
object.move_to(new_object) unless dry_run?
object.move_to(new_object, acl: attachment.s3_permissions(style)) unless dry_run?
rescue => e
progress.log(pastel.red("Error processing #{object.key}: #{e}"))
success = false
Expand Down

0 comments on commit dbd5b87

Please sign in to comment.