mmr-retention.sh 382 B

12345678910
  1. #!/bin/bash
  2. echo "[Info] Current settings from env var: Host @ ${mmrHost}; Access Token sha1 $(echo ${mmrToken} | sha1sum); Purge date ${mmrPDate}"
  3. mmrPTS=$(date -d "${mmrPDate}" "+%s")
  4. while true; do
  5. curl -L --no-progress-meter -X POST "https://${mmrHost}/_matrix/media/unstable/admin/purge/old?access_token=${mmrToken}&before_ts=${mmrPTS}&include_local=true"
  6. sleep 3600s
  7. done