2016-05-16 22:00:56 +02:00
|
|
|
#!/bin/sh
|
2016-05-28 20:09:45 +02:00
|
|
|
|
|
|
|
|
#initialize variable encase we are called directly
|
2016-06-04 21:21:32 +02:00
|
|
|
[ -z $USE_SWITCH_PACKAGE_UNOFFICIAL_ARM ] && USE_SWITCH_PACKAGE_UNOFFICIAL_ARM=false
|
2016-05-28 20:09:45 +02:00
|
|
|
|
2016-05-16 22:00:56 +02:00
|
|
|
apt-get update && apt-get install -y --force-yes curl memcached haveged
|
|
|
|
|
arch=$(uname -m)
|
2016-06-04 21:21:32 +02:00
|
|
|
if [ $arch = 'armv7l' ] && [ $USE_SWITCH_PACKAGE_UNOFFICIAL_ARM = true ]; then
|
2016-05-16 22:00:56 +02:00
|
|
|
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
|
|
|
|
|
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
|
2016-05-26 12:55:14 +02:00
|
|
|
apt-get update && apt-get install -y --force-yes freeswitch-meta-all freeswitch-all-dbg gdb
|
2016-05-16 22:00:56 +02:00
|
|
|
|
2016-05-26 12:55:14 +02:00
|
|
|
#make sure that postgresql is started before starting freeswitch
|
|
|
|
|
sed -i /lib/systemd/system/freeswitch.service -e s:'local-fs.target:local-fs.target postgresql.service:'
|