Update package-release.sh (#159)

* Update package-release.sh

add $switch_version

* Update package-release.sh
This commit is contained in:
Len 2018-03-08 23:36:10 -05:00 committed by FusionPBX
parent d082bd06f1
commit 409fddcb5d
1 changed files with 2 additions and 2 deletions

View File

@ -10,11 +10,11 @@ cd "$(dirname "$0")"
apt-get update && apt-get install -y --force-yes curl memcached haveged apt-transport-https
if [ ."$cpu_architecture" = ."arm" ]; then
echo "deb https://repo.fusionpbx.com/armhf jessie main" > /etc/apt/sources.list.d/freeswitch.list
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 -
else
if [ ."$os_codename" = ."stretch" ]; then
echo "deb https://repo.fusionpbx.com/armhf stretch stable" > /etc/apt/sources.list.d/freeswitch.list
echo "deb https://repo.fusionpbx.com/armhf stretch 1.6.20" > /etc/apt/sources.list.d/freeswitch.list
curl https://repo.fusionpbx.com/public.key | apt-key add -
else
echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" > /etc/apt/sources.list.d/freeswitch.list