From a6049ad17fc6d2f23e688024c0ab984740efdee9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 4 Mar 2017 23:06:30 -0700 Subject: [PATCH] Update package-all.sh --- debian/resources/switch/package-all.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/debian/resources/switch/package-all.sh b/debian/resources/switch/package-all.sh index a21042b..5573fba 100755 --- a/debian/resources/switch/package-all.sh +++ b/debian/resources/switch/package-all.sh @@ -1,11 +1,13 @@ #!/bin/sh -#initialize variable encase we are called directly -[ -z $USE_SWITCH_PACKAGE_UNOFFICIAL_ARM ] && USE_SWITCH_PACKAGE_UNOFFICIAL_ARM=false +. ../config.sh +. ../colors.sh +. ../environment.sh +. ../arguments.sh apt-get update && apt-get install -y --force-yes ntp curl memcached haveged -arch=$(uname -m) -if [ $arch = 'armv7l' ] && [ $USE_SWITCH_PACKAGE_UNOFFICIAL_ARM = true ]; then + +if [ ."$cpu_architecture" = ."arm" ]; then echo "deb http://repo.sip247.com/debian/freeswitch-stable-armhf/ jessie main" > /etc/apt/sources.list.d/freeswitch.list curl http://repo.sip247.com/debian/sip247.com.gpg.key | apt-key add - else