소스 검색

Install all the services

Simplify how the services are installed
FusionPBX 1 개월 전
부모
커밋
4fd8615400
1개의 변경된 파일4개의 추가작업 그리고 24개의 파일을 삭제
  1. 4 24
      debian/resources/finish.sh

+ 4 - 24
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 ""