Install the services

Simplify installing the services
This commit is contained in:
FusionPBX
2025-08-03 08:41:32 -06:00
committed by GitHub
parent 4fd8615400
commit 789eaeb91c

View File

@@ -97,21 +97,15 @@ cd /var/www/fusionpbx && php /var/www/fusionpbx/core/upgrade/upgrade_domains.php
/bin/systemctl daemon-reload /bin/systemctl daemon-reload
/bin/systemctl restart freeswitch /bin/systemctl restart freeswitch
#install the email_queue service #make the /var/run directory and set the ownership
cp /var/www/fusionpbx/app/email_queue/resources/service/debian.service /etc/systemd/system/email_queue.service mkdir -p /var/run/fusionpbx
systemctl enable email_queue chown -R www-data:www-data /var/run/fusionpbx
systemctl start email_queue
systemctl daemon-reload
#install the event_guard service #install the services
cp /var/www/fusionpbx/app/event_guard/resources/service/debian.service /etc/systemd/system/event_guard.service cd /var/www/fusionpbx && /usr/bin/php /var/www/fusionpbx/core/upgrade/upgrade.php --services
/bin/systemctl enable event_guard
/bin/systemctl start event_guard
/bin/systemctl daemon-reload
#add xml cdr import to crontab #install crontab
apt install cron apt install cron
(crontab -l; echo "* * * * * $(which php) /var/www/fusionpbx/app/xml_cdr/xml_cdr_import.php 300") | crontab
#welcome message #welcome message
echo "" echo ""