From 163929dd7cb098e015a260ffe99408b929d26663 Mon Sep 17 00:00:00 2001 From: TylerP Date: Sat, 16 Sep 2017 14:31:35 -0400 Subject: [PATCH] Update fusionpbx-maintenance.sh (#128) I am a novice but I think I found some small items here to correct. Most notably, the path for freeswitch voicemail is not proper, at least for my packages based install. --- debian/resources/backup/fusionpbx-maintenance.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/resources/backup/fusionpbx-maintenance.sh b/debian/resources/backup/fusionpbx-maintenance.sh index f4b581c..7bd5748 100755 --- a/debian/resources/backup/fusionpbx-maintenance.sh +++ b/debian/resources/backup/fusionpbx-maintenance.sh @@ -37,18 +37,18 @@ fi #delete call recordings older than 90 days if [ .$switch_package = .true ]; then - find /var/lib/freeswitch/recordings/*/archive/* -name '*.wav -mtime +90 -exec rm {} \; + find /var/lib/freeswitch/recordings/*/archive/* -name '*.wav' -mtime +90 -exec rm {} \; find /var/lib/freeswitch/recordings/*/archive/* -name '*.mp3' -mtime +90 -exec rm {} \; else - find /usr/local/freeswitch/recordings/*/archive/* -name '*.wav -mtime +90 -exec rm {} \; + find /usr/local/freeswitch/recordings/*/archive/* -name '*.wav' -mtime +90 -exec rm {} \; find /usr/local/freeswitch/recordings/*/archive/* -name '*.mp3' -mtime +90 -exec rm {} \; fi #delete voicemail older than 90 days if [ .$switch_package = .true ]; then echo "."; - #find /usr/local/freeswitch/storage/voicemail/* -name 'msg_*.wav' -mtime +90 -exec rm {} \; - #find /usr/local/freeswitch/storage/voicemail/* -name 'msg_*.mp3' -mtime +90 -exec rm {} \; + #find /var/lib/freeswitch/storage/voicemail/default/* -name 'msg_*.wav' -mtime +90 -exec rm {} \; + #find /var/lib/freeswitch/storage/voicemail/default/* -name 'msg_*.mp3' -mtime +90 -exec rm {} \; else echo "."; #find /usr/local/freeswitch/storage/voicemail/* -name 'msg_*.wav' -mtime +90 -exec rm {} \;