descriptionnone
last changeThu, 23 Sep 2021 21:16:40 +0000 (23:16 +0200)
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 -u db.py |tee /tmp/maintenance_db.log; python3 -u fs.py echo ""; du -sch /srv/mattermost/data/* | tail)
59 11 * * MON (cd /srv/mattermost/mattermost-privileged/profile_badges; python3 -u main.py)
0 0 * * 2-7   (cd /srv/mattermost/mattermost-privileged/stats; python3 -u main.py)
0 0 * * MON   (cd /srv/mattermost/mattermost-privileged/stats; python3 -u main.py week)

maintenance

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

profile_badges

stats

shortlog
2021-09-23 Someonemaintenance/fs.py master
2021-09-23 Someonemaintenance/db.py
2021-09-21 Someonemaintenance/fs.py
2021-09-21 Someonemaintenance/db.py
2021-08-09 Someoneprofile_badges/main.py
2021-07-22 Someonemaintenance/fs.py
2021-07-22 Someonemaintenance/db.py
2021-06-21 Someoneprofile_badges/main.py
2021-06-21 Someoneprofile_badges/main.py
2021-05-16 Someonemaintenance/fs.py
2021-05-16 Someonemaintenance/db.py
2021-05-07 Someonestats/channel_activity.py
2021-05-04 Someonemaintenance/fs.py
2021-05-04 Someonemaintenance/db.py
2021-03-22 Someone[stats] user_activity
2021-03-22 daJu[stats] userstats
...
tags
5 years ago InitialCommit
heads
4 weeks ago master