diff options
Diffstat (limited to 'app/im/build/matrix-synapse/matrix-s3-async-sqlite')
-rwxr-xr-x | app/im/build/matrix-synapse/matrix-s3-async-sqlite | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/im/build/matrix-synapse/matrix-s3-async-sqlite b/app/im/build/matrix-synapse/matrix-s3-async-sqlite new file mode 100755 index 0000000..b9eb73a --- /dev/null +++ b/app/im/build/matrix-synapse/matrix-s3-async-sqlite @@ -0,0 +1,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 |