applications.sh 977 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. #move to script directory so all relative paths work
  3. cd "$(dirname "$0")"
  4. #includes
  5. . ./config.sh
  6. #optional applications
  7. cd /var/www/fusionpbx/app
  8. if [ .$application_transcribe = .'true' ]; then
  9. git clone https://github.com/fusionpbx/fusionpbx-app-transcribe.git transcribe
  10. fi
  11. if [ .$application_speech = .'true' ]; then
  12. git clone https://github.com/fusionpbx/fusionpbx-app-speech.git speech
  13. fi
  14. if [ .$application_device_logs = .'true' ]; then
  15. git clone https://github.com/fusionpbx/fusionpbx-app-device_logs.git device_logs
  16. fi
  17. if [ .$application_dialplan_tools = .'true' ]; then
  18. git clone https://github.com/fusionpbx/fusionpbx-app-dialplan_tools.git dialplan_tools
  19. fi
  20. if [ .$application_edit = .'true' ]; then
  21. git clone https://github.com/fusionpbx/fusionpbx-app-edit.git edit
  22. fi
  23. if [ .$application_sip_trunks = .'true' ]; then
  24. git clone https://github.com/fusionpbx/fusionpbx-app-sip_trunks.git sip_trunks
  25. fi
  26. chown -R www-data:www-data /var/www/fusionpbx