descriptionnone
last changeMon, 5 Sep 2022 17:18:49 +0000 (19:18 +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 -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
2022-09-05 Someoneprofile_badges/main.py master
2022-08-30 Someone[stats] user_activity
2022-08-30 daJu[stats] userstats
2022-08-30 Someone[stats] posts_with_reactions
2022-08-30 Someone[stats] channel_activity
2022-08-30 Someone[stats] base for dumping various stats into channels
2022-08-30 Someone[profile_badges] post-count and channel-membership...
2022-08-30 Someone[maintenance] Permanently delete {"deleted",orphaned...
2022-08-30 gitREADME.md
2016-09-14 git.gitignore
2016-09-14 gitLICENSE.txt
2016-09-14 gitGITOLITE.txt
2016-09-14 gitInitial commit InitialCommit
tags
6 years ago InitialCommit
heads
3 weeks ago master