aboutsummaryrefslogblamecommitdiff
path: root/app/im/build/matrix-synapse/matrix-s3-async-sqlite
blob: 4bba07216214d8dd56868bf6f5c8eb7257d33943 (plain) (tree)
1
2
3
4
5
6
7
8
9



                         
                              



                                                   

                                                                                                                                              

           
#!/bin/bash

cat > database.yaml <<EOF
sqlite:
  database: $SYNAPSE_SQLITE_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 $SYNAPSE_MEDIA_STORE
  /root/matrix-env/bin/s3_media_upload --no-progress upload $SYNAPSE_MEDIA_STORE $SYNAPSE_MEDIA_S3_BUCKET --delete --endpoint-url $S3_ENDPOINT
  sleep 600
done