aboutsummaryrefslogtreecommitdiff
path: root/app/im/build/matrix-synapse/matrix-s3-async-sqlite
blob: b9eb73ae35ce0de243645afa218b4ccad1b48bf8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

cat > database.yaml <<EOF
sqlite:
  database: /ephemeral/homeserver.db
EOF

while true; do
  /root/matrix-env/bin/s3_media_upload update-db 0d
  /root/matrix-env/bin/s3_media_upload --no-progress check-deleted /ephemeral/media_store
  /root/matrix-env/bin/s3_media_upload --no-progress upload /ephemeral/media_store matrix --delete --endpoint-url https://garage-staging.home.adnab.me
  sleep 600
done