From 4fd8615400eb19a9f88f001ca6b5de4e60ac22b3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 3 Aug 2025 08:40:15 -0600 Subject: [PATCH] Install all the services Simplify how the services are installed --- debian/resources/finish.sh | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/debian/resources/finish.sh b/debian/resources/finish.sh index fe6fb9d..95fff72 100755 --- a/debian/resources/finish.sh +++ b/debian/resources/finish.sh @@ -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 ""