diff --git a/bigbluebutton-config/cron.daily/bigbluebutton b/bigbluebutton-config/cron.daily/bigbluebutton index 2cf69319ab..60efe596b1 100755 --- a/bigbluebutton-config/cron.daily/bigbluebutton +++ b/bigbluebutton-config/cron.daily/bigbluebutton @@ -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