diff --git a/readme.md b/readme.md index 11408b8..743235a 100644 --- a/readme.md +++ b/readme.md @@ -9,6 +9,8 @@ This Script removes cached and federated media. # Instructions: - Create a File: nano mastodon.sh - Give the file the needed permissions: chmod 0755 mastodon.sh +- Create a directory for the logs: mkdir mms-logs +- Adding a log file to the directory: touch mms-logs/script.log - Run it: bash mastodon.sh - Done. @@ -19,6 +21,6 @@ This Script removes cached and federated media. - Deleting cached files - Deleting files that do not belong to existing media attachments -# Create hourly cronjob: -- sudo crontab -u mastodon -e -- Copy & Paste: 0 * * * * bash /home/mastodon/mastodon.sh \ No newline at end of file +# Create a cronjob that runs every 30 mins: +- crontab -e +- Copy & Paste: */30 * * * * bash /home/mastodon/mastodon.sh > /home/mastodon/mms-logs/script.log 2>&1 \ No newline at end of file