diff --git a/debian/resources/switch/package-release.sh b/debian/resources/switch/package-release.sh index 310c7b3..74f1d92 100755 --- a/debian/resources/switch/package-release.sh +++ b/debian/resources/switch/package-release.sh @@ -9,23 +9,11 @@ cd "$(dirname "$0")" . ../environment.sh apt-get update && apt-get install -y curl memcached haveged apt-transport-https -if [ ."$cpu_architecture" = ."arm" ]; then - if [ ."$os_codename" = ."stretch" ]; then - echo "deb https://repo.fusionpbx.com/armhf stretch 1.8.4" > /etc/apt/sources.list.d/freeswitch.list - curl https://repo.fusionpbx.com/public.key | apt-key add - - else - echo "deb https://repo.fusionpbx.com/armhf jessie 1.6.20" > /etc/apt/sources.list.d/freeswitch.list - curl https://repo.fusionpbx.com/public.key | apt-key add - - fi -else - if [ ."$os_codename" = ."stretch" ]; then - wget -qO - http://files.freeswitch.org/repo/deb/freeswitch-1.8/fsstretch-archive-keyring.gpg | apt-key add - - echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.8/ stretch main" > /etc/apt/sources.list.d/freeswitch.list - else - echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" > /etc/apt/sources.list.d/freeswitch.list - curl http://files.freeswitch.org/repo/deb/freeswitch-1.6/key.gpg | apt-key add - - fi -fi +apt-get update && apt-get install -y wget lsb-release gnupg2 +wget -O - https://files.freeswitch.org/repo/deb/debian-release/fsstretch-archive-keyring.asc | apt-key add - +echo "deb http://files.freeswitch.org/repo/deb/debian-release/ `lsb_release -sc` main" > /etc/apt/sources.list.d/freeswitch.list +echo "deb-src http://files.freeswitch.org/repo/deb/debian-release/ `lsb_release -sc` main" >> /etc/apt/sources.list.d/freeswitch.list + apt-get update apt-get install -y gdb ntp apt-get install -y freeswitch-meta-bare freeswitch-conf-vanilla freeswitch-mod-commands freeswitch-mod-console freeswitch-mod-logfile