mirror of
https://github.com/rclone/rclone.git
synced 2025-01-19 18:42:45 +08:00
s3: Allow command line to override acl (Thanks Radek Senfeld)
This commit is contained in:
parent
452c68115f
commit
cb40511807
5
s3/s3.go
5
s3/s3.go
|
@ -368,12 +368,15 @@ func NewFs(name, root string) (fs.Fs, error) {
|
|||
c: c,
|
||||
bucket: bucket,
|
||||
ses: ses,
|
||||
acl: fs.ConfigFile.MustValue(name, "acl", *s3ACL),
|
||||
acl: fs.ConfigFile.MustValue(name, "acl"),
|
||||
root: directory,
|
||||
locationConstraint: fs.ConfigFile.MustValue(name, "location_constraint"),
|
||||
sse: fs.ConfigFile.MustValue(name, "server_side_encryption"),
|
||||
storageClass: fs.ConfigFile.MustValue(name, "storage_class"),
|
||||
}
|
||||
if *s3ACL != "" {
|
||||
f.acl = *s3ACL
|
||||
}
|
||||
if *s3StorageClass != "" {
|
||||
f.storageClass = *s3StorageClass
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user