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
+1 -1
View File
@@ -6,7 +6,7 @@ if [ $# -eq 0 ]; then
fi
if [[ ! -f ~/.config/rclone/rclone.conf ]]; then
echo "You must first configure rclone with the R2 credentials: rclone config"
echo "You must first configure rclone with the R2 credentials: omarchy-iso-rclone-config"
exit 1
fi