From 789eaeb91cd71377b8639155958d703165709e09 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 3 Aug 2025 08:41:32 -0600 Subject: [PATCH] Install the services Simplify installing the services --- ubuntu/resources/finish.sh | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/ubuntu/resources/finish.sh b/ubuntu/resources/finish.sh index ce6be20..c0666cf 100755 --- a/ubuntu/resources/finish.sh +++ b/ubuntu/resources/finish.sh @@ -97,21 +97,15 @@ cd /var/www/fusionpbx && php /var/www/fusionpbx/core/upgrade/upgrade_domains.php /bin/systemctl daemon-reload /bin/systemctl restart freeswitch -#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 +#make the /var/run directory and set the ownership +mkdir -p /var/run/fusionpbx +chown -R www-data:www-data /var/run/fusionpbx -#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 services +cd /var/www/fusionpbx && /usr/bin/php /var/www/fusionpbx/core/upgrade/upgrade.php --services -#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 ""