Browse Source

docs:upload --rclone

https://rclone.org/s3/#s3-no-check-bucket

> `--s3-no-check-bucket`
> If set, don't attempt to check the bucket exists or create it.
> It can also be needed if the user you are using does not have bucket creation permissions.
Simon Legner 1 month ago
parent
commit
85f519ec03
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/tasks/docs.thor

+ 1 - 1
lib/tasks/docs.thor

@@ -210,7 +210,7 @@ class DocsCLI < Thor
       cmd << ' --dryrun' if options[:dryrun]
       cmd << ' --dryrun' if options[:dryrun]
       if options[:rclone]
       if options[:rclone]
         puts "[S3 bundle] Uploading #{filename} using rclone..."
         puts "[S3 bundle] Uploading #{filename} using rclone..."
-        cmd = "rclone copy #{File.join(Docs.store_path, filename)} devdocs:devdocs-downloads/"
+        cmd = "rclone copy #{File.join(Docs.store_path, filename)} devdocs:devdocs-downloads/ --s3-no-check-bucket"
         cmd << ' --dry-run' if options[:dryrun]
         cmd << ' --dry-run' if options[:dryrun]
       end
       end
       system(cmd)
       system(cmd)