mirror of
https://github.com/rclone/rclone.git
synced 2026-09-22 13:56:03 -04:00
s3: Allow command line to override acl (Thanks Radek Senfeld)
This commit is contained in:
1 parent
452c68115f
commit
cb40511807
1 file changed
+4
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user