Automate the rclone config

This commit is contained in:
David Heinemeier Hansson committed 2025-11-10 14:01:25 +01:00
1 parent cab0c5b50a
commit 5c2d06c5fc
2 files changed
+15 -1

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
access_key=$(op read "op://Shared/Cloudflare Buckets/iso.omarchy.org/access_key_id" --account Omarchy)
secret_access_key=$(op read "op://Shared/Cloudflare Buckets/iso.omarchy.org/secret_access_key" --account Omarchy)
endpoint=$(op read "op://Shared/Cloudflare Buckets/iso.omarchy.org/endpoint" --account Omarchy)
cat > ~/.config/rclone/rclone.conf << EOF
[Omarchy]
type = s3
provider = Cloudflare
access_key_id = $access_key
secret_access_key = $secret_access_key
endpoint = $endpoint
EOF