]> git.somenet.org - pub/jan/mattermost-privileged.git/summary
 
descriptionnone
last changeSat, 18 Mar 2023 22:13:01 +0000 (23:13 +0100)
readme

Someone's privileged Mattermost scripts.

Beware: These scripts run regularily and are well tested. BUT by using these scripts, MM inc. may refuse to help you, if you run into (unrelated) issues with your MM.

It all started with me starting to write my own DB+FS cleaner, after posting this: https://mattermost.uservoice.com/forums/306457/suggestions/15357861 But eventually grew to include other scripts too.

consider running as cronjobs:

00 23 * * *   (cd /srv/mattermost/mattermost-privileged; git pull --recurse-submodules=yes; git gc) &>/dev/null
55 23 * * *   (cd /srv/mattermost/mattermost-privileged/maintenance; python3 -Bu db.py |tee /tmp/maintenance_db.log; python3 -Bu fs.py echo ""; du -sch /srv/mattermost/data/* | tail)
59 11 * * MON (cd /srv/mattermost/mattermost-privileged/profile_badges; python3 -Bu main.py)
0 0 * * 2-7   (cd /srv/mattermost/mattermost-privileged/stats; python3 -Bu main.py)
0 0 * * MON   (cd /srv/mattermost/mattermost-privileged/stats; python3 -Bu main.py week)

maintenance

Beware: running this WILL break your instance's audit-trails. This IS intended behavior

profile_badges

stats

shortlog
2023-03-18 Someonemaintenance/fs.py master
2023-03-18 Someonemaintenance/db.py
2023-02-26 Someonemaintenance/db.py
2023-02-25 Someonemaintenance/db.py
2023-02-25 Someonemaintenance/fs.py
2023-02-25 Someonemaintenance/db.py
2023-02-13 Someonemaintenance/db.py
2023-02-13 Someonemaintenance/db.py
2023-02-08 Someonemaintenance/db.py
2023-01-30 Someonemaintenance/fs.py
2023-01-30 Someonemaintenance/db.py
2023-01-05 Someonemaintenance/config.py.example
2022-11-27 Someonemaintenance/fs.py
2022-11-27 Someonemaintenance/db.py
2022-09-20 Someonemaintenance/fs.py
2022-09-20 Someonemaintenance/db.py
...
tags
6 years ago InitialCommit
heads
2 months ago master