package-all.sh 1.2 KB

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. #move to script directory so all relative paths work
  3. cd "$(dirname "$0")"
  4. #includes
  5. . ../config.sh
  6. . ../colors.sh
  7. . ../environment.sh
  8. apt-get update && apt-get install -y ntp curl memcached haveged apt-transport-https
  9. apt-get update && apt-get install -y wget lsb-release gnupg2
  10. if [ ."$cpu_architecture" = ."x86" ]; then
  11. wget -O - https://files.freeswitch.org/repo/deb/debian-release/fsstretch-archive-keyring.asc | apt-key add -
  12. echo "deb http://files.freeswitch.org/repo/deb/debian-release/ ${os_codename_debian} main" > /etc/apt/sources.list.d/freeswitch.list
  13. echo "deb-src http://files.freeswitch.org/repo/deb/debian-release/ ${os_codename_debian} main" >> /etc/apt/sources.list.d/freeswitch.list
  14. fi
  15. if [ ."$cpu_architecture" = ."arm" ]; then
  16. wget -O - https://files.freeswitch.org/repo/deb/rpi/debian-release/freeswitch_archive_g0.pub | apt-key add -
  17. echo "deb http://files.freeswitch.org/repo/deb/rpi/debian-release/ ${os_codename_debian} main" > /etc/apt/sources.list.d/freeswitch.list
  18. echo "deb-src http://files.freeswitch.org/repo/deb/rpi/debian-release/ ${os_codename_debian} main" >> /etc/apt/sources.list.d/freeswitch.list
  19. fi
  20. apt-get update && apt-get install -y freeswitch-meta-all freeswitch-all-dbg gdb