Update package-release.sh

This commit is contained in:
FusionPBX
2018-11-05 22:58:49 -07:00
committed by GitHub
parent 9e52fb86c3
commit ed7beb4156

View File

@@ -10,8 +10,13 @@ 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 1.6.20" > /etc/apt/sources.list.d/freeswitch.list
curl https://repo.fusionpbx.com/public.key | apt-key add -
if [ ."$os_codename" = ."stretch" ]; then
echo "deb https://repo.fusionpbx.com/armhf stretch 1.8.2" > /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 -