Browse Source

Add a cron job for call detail records.

FusionPBX 2 years ago
parent
commit
182cde2031
3 changed files with 21 additions and 0 deletions
  1. 3 0
      debian/resources/finish.sh
  2. 15 0
      devuan/resources/finish.sh
  3. 3 0
      ubuntu/resources/finish.sh

+ 3 - 0
debian/resources/finish.sh

@@ -110,6 +110,9 @@ cp /var/www/fusionpbx/app/event_guard/resources/service/debian.service /etc/syst
 /bin/systemctl start event_guard
 /bin/systemctl daemon-reload
 
+#add xml cdr import to crontab
+cat <(crontab -l) <(echo "* * * * * $(which php) /var/www/fusionpbx/app/xml_cdr/xml_cdr_import.php 300") | crontab -
+
 #welcome message
 echo ""
 echo ""

+ 15 - 0
devuan/resources/finish.sh

@@ -105,6 +105,21 @@ cd /var/www/fusionpbx && php /var/www/fusionpbx/core/upgrade/upgrade.php
 #restart freeswitch
 /usr/sbin/service freeswitch restart
 
+#install the email_queue service
+cp /var/www/fusionpbx/app/email_queue/resources/service/debian.service /etc/systemd/system/email_queue.service
+systemctl enable email_queue
+systemctl start email_queue
+systemctl daemon-reload
+
+#install the event_guard service
+cp /var/www/fusionpbx/app/event_guard/resources/service/debian.service /etc/systemd/system/event_guard.service
+/bin/systemctl enable event_guard
+/bin/systemctl start event_guard
+/bin/systemctl daemon-reload
+
+#add xml cdr import to crontab
+cat <(crontab -l) <(echo "* * * * * $(which php) /var/www/fusionpbx/app/xml_cdr/xml_cdr_import.php 300") | crontab -
+
 #welcome message
 echo ""
 echo ""

+ 3 - 0
ubuntu/resources/finish.sh

@@ -109,6 +109,9 @@ cp /var/www/fusionpbx/app/event_guard/resources/service/debian.service /etc/syst
 /bin/systemctl start event_guard
 /bin/systemctl daemon-reload
 
+#add xml cdr import to crontab
+cat <(crontab -l) <(echo "* * * * * $(which php) /var/www/fusionpbx/app/xml_cdr/xml_cdr_import.php 300") | crontab -
+
 #welcome message
 echo ""
 echo ""