forked from norman/fusionpbx-install.sh-github-mirror
Merge branch 'master' of https://github.com/fusionpbx/fusionpbx-install.sh
This commit is contained in:
10
debian/resources/switch/package-all.sh
vendored
10
debian/resources/switch/package-all.sh
vendored
@@ -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
|
||||
|
||||
5
debian/resources/switch/package-release.sh
vendored
5
debian/resources/switch/package-release.sh
vendored
@@ -3,12 +3,13 @@
|
||||
#move to script directory so all relative paths work
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
. ../config.sh
|
||||
. ../colors.sh
|
||||
. ../environment.sh
|
||||
. ../arguments.sh
|
||||
|
||||
apt-get update && apt-get install -y --force-yes 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
|
||||
|
||||
Reference in New Issue
Block a user