diff --git a/Mediaserver-setup-[advanced].md b/Mediaserver-setup-[advanced].md index 03f1f14..f73a53f 100644 --- a/Mediaserver-setup-[advanced].md +++ b/Mediaserver-setup-[advanced].md @@ -63,12 +63,13 @@ When using the local download configuration, matterbridge does not clean up any If you run into issues with the amount of storage availble, then it is advised to do an automated cleanup which is to be done externally (i.e. via cron). An example cronjob and script are below: Adding the cronjob: -Use your favorite text editing tool to add the below content to /etc/crontab +Use crontab /etc/crontab to be able to add the following line. +crontab: ``` @daily /path/to/matterbridge/cleanup.sh ``` -The cronjob will now run cleanup.sh on a daily interval. The cleanup.sh needs to contain the following +The cronjob will now run cleanup.sh on a daily interval. The cleanup.sh with the following contents does a very basic clean up. cleanup.sh: ``` #!/bin/bash