Install all the services

Simplify how the services are installed
This commit is contained in:
FusionPBX
2025-08-03 08:40:15 -06:00
committed by GitHub
parent 98079206fc
commit 4fd8615400

View File

@@ -99,34 +99,14 @@ cd /var/www/fusionpbx && /usr/bin/php /var/www/fusionpbx/core/upgrade/upgrade.ph
/bin/systemctl restart freeswitch
#make the /var/run directory and set the ownership
mkdir /var/run/fusionpbx
mkdir -p /var/run/fusionpbx
chown -R www-data:www-data /var/run/fusionpbx
#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 services
cd /var/www/fusionpbx && /usr/bin/php /var/www/fusionpbx/core/upgrade/upgrade.php --services
#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
#install the websockets service
cp /var/www/fusionpbx/core/websockets/resources/service/debian-websockets.service /etc/systemd/system/websockets.service
systemctl daemon-reload
systemctl enable --now websockets
#install the active_calls service
cp /var/www/fusionpbx/app/active_calls/resources/service/debian-active_calls.service /etc/systemd/system/active_calls.service
systemctl daemon-reload
systemctl enable --now active_calls
#add xml cdr import to crontab
#install crontab
apt install cron
(crontab -l; echo "* * * * * $(which php) /var/www/fusionpbx/app/xml_cdr/xml_cdr_import.php 300") | crontab
#welcome message
echo ""