632 B
632 B
Purge old meia
Shell script that cleans up the matrix postgresql database, removes push notifications that aren't needed, kicks out inactive users from rooms, cleans up states with synapse_auto_compressor and so on.
Running
- Set SQL credentials and URL to local matrix in the script
- build synapse_auto_compressor and set its path in the script
- make sure that the bridge did start at least once (it creates rooms and adds an admin user that we need)
- add it as a cron job all 6h or so, like:
0 */6 * * * root /etc/matrix-synapse/matrixpurge.sh