Fax Logs Clean up (#265)
* Update fusionpbx-maintenance * Update fusionpbx-maintenance * Update fusionpbx-maintenance.sh
This commit is contained in:
parent
49a60d4f00
commit
0119304591
|
|
@ -34,6 +34,7 @@ else
|
|||
fi
|
||||
#delete from the database
|
||||
#psql --host=127.0.0.1 --username=fusionpbx -c "delete from v_fax_files WHERE fax_date < NOW() - INTERVAL '90 days'"
|
||||
#psql --host=127.0.0.1 --username=fusionpbx -c "delete from v_fax_logs WHERE fax_date < NOW() - INTERVAL '90 days'"
|
||||
|
||||
#delete call recordings older than 90 days
|
||||
if [ .$switch_package = .true ]; then
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ else
|
|||
fi
|
||||
#delete from the database
|
||||
#psql --host=127.0.0.1 --username=fusionpbx -c "delete from v_fax_files WHERE fax_date < NOW() - INTERVAL '90 days'"
|
||||
#psql --host=127.0.0.1 --username=fusionpbx -c "delete from v_fax_logs WHERE fax_date < NOW() - INTERVAL '90 days'"
|
||||
|
||||
#delete voicemail older than 90 days
|
||||
if [ .$switch_package = .true ]; then
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ else
|
|||
fi
|
||||
#delete from the database
|
||||
#psql --host=127.0.0.1 --username=fusionpbx -c "delete from v_fax_files WHERE fax_date < NOW() - INTERVAL '90 days'"
|
||||
#psql --host=127.0.0.1 --username=fusionpbx -c "delete from v_fax_logs WHERE fax_date < NOW() - INTERVAL '90 days'"
|
||||
|
||||
#delete call recordings older than 90 days
|
||||
if [ .$switch_package = .true ]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue