fix bigbluebutton cron job

This commit is contained in:
Felipe Cecagno 2016-09-05 12:50:41 -03:00
parent 4aa2a732e2
commit 57047b5964

View File

@ -58,13 +58,13 @@ find /var/freeswitch/meetings/ -name "*.wav" -mtime +$history -exec rm '{}' +
FREESWITCH_LOG=/opt/freeswitch/log/
if [ ! -d /opt/freeswitch/log ]; then
FREESWITCH_VARS=/opt/freeswitch/var/log/freeswitch/
FREESWITCH_LOG=/opt/freeswitch/var/log/freeswitch/
fi
#
# Delete FreeSWITCH log files and CDR
#
find $FREESWITCH_VARS -name "*.xml" -type f -mtime +$history -exec rm '{}' +
find $FREESWITCH_LOG -name "*.xml" -type f -mtime +$history -exec rm '{}' +
#
# Delete raw files of recordings without recording marks older than N days