2020-05-22 14:56:45 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#
|
|
|
|
# How N days back to keep files
|
|
|
|
#
|
|
|
|
history=5
|
|
|
|
|
|
|
|
while :
|
|
|
|
do
|
2021-10-17 20:26:26 +02:00
|
|
|
|
2020-05-23 08:59:33 +02:00
|
|
|
# resync freeswitch
|
|
|
|
/bbb-resync-freeswitch
|
2020-05-22 14:56:45 +02:00
|
|
|
|
|
|
|
# delete presentations older than N days
|
2022-01-27 09:53:45 +01:00
|
|
|
find /var/bigbluebutton/ -maxdepth 1 -type d -name "*-[0-9]*" -mtime +$history -exec rm -rf '{}' +
|
2020-05-22 14:56:45 +02:00
|
|
|
|
2021-10-17 20:26:26 +02:00
|
|
|
# delete recordings older than $RECORDING_MAX_AGE_DAYS
|
|
|
|
if [ "$ENABLE_RECORDING" == true ] && [ "$REMOVE_OLD_RECORDING" == true ]; then
|
|
|
|
/bbb-remove-old-recordings
|
|
|
|
fi
|
|
|
|
|
2020-05-22 18:50:51 +02:00
|
|
|
sleep 30m
|
2021-10-17 20:26:26 +02:00
|
|
|
done
|