nixcfg/app/im/build/matrix-synapse/matrix-s3-async-sqlite

14 lines
398 B
Text
Raw Normal View History

2022-01-10 20:36:27 +00:00
#!/bin/bash
cat > database.yaml <<EOF
sqlite:
database: $SYNAPSE_SQLITE_DB
2022-01-10 20:36:27 +00:00
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
2022-01-10 20:36:27 +00:00
sleep 600
done