switch.sh 963 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #!/bin/sh
  2. #move to script directory so all relative paths work
  3. cd "$(dirname "$0")"
  4. #includes
  5. . ./config.sh
  6. verbose "Installing FreeSWITCH"
  7. if [ .$switch_source = .true ]; then
  8. if [ ."$switch_branch" = "master" ]; then
  9. switch/source-master.sh
  10. else
  11. switch/source-release.sh
  12. fi
  13. #copy the switch conf files to /etc/freeswitch
  14. switch/conf-copy.sh
  15. #set the file permissions
  16. switch/source-permissions.sh
  17. #sysvinit service
  18. switch/source-sysvinit.sh
  19. fi
  20. if [ .$switch_package = .true ]; then
  21. if [ ."$switch_branch" = "master" ]; then
  22. if [ .$switch_package_all = .true ]; then
  23. switch/package-master-all.sh
  24. else
  25. switch/package-master.sh
  26. fi
  27. else
  28. if [ .$switch_package_all = .true ]; then
  29. switch/package-all.sh
  30. else
  31. switch/package-release.sh
  32. fi
  33. fi
  34. #copy the switch conf files to /etc/freeswitch
  35. switch/conf-copy.sh
  36. #set the file permissions
  37. switch/package-permissions.sh
  38. #sysvinit service
  39. switch/package-sysvinit.sh
  40. fi