ADD DNSDist(DoH DoT) service
This commit is contained in:
17
roles/mastodon/files/mastodon-clean
Executable file
17
roles/mastodon/files/mastodon-clean
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
cd /home/mastodon/live;
|
||||
export PATH="$HOME/.rbenv/bin:$PATH";
|
||||
eval "$(rbenv init -)";
|
||||
echo "Nettoyage du cache";
|
||||
RAILS_ENV=production /home/mastodon/live/bin/tootctl cache clear;
|
||||
|
||||
|
||||
echo "Nettoyage du cache des médias consultés agé de plus de 5 jours";
|
||||
RAILS_ENV=production /home/mastodon/live/bin/tootctl media remove --days 5;
|
||||
|
||||
echo "Nettoyage du cache des prévisualisations agées de plus de 14 jours";
|
||||
RAILS_ENV=production /home/mastodon/live/bin/tootctl preview_cards remove --days 14;
|
||||
|
||||
echo "Nettoyage des médias orphelins";
|
||||
RAILS_ENV=production /home/mastodon/live/bin/tootctl media remove-orphans;
|
||||
Reference in New Issue
Block a user