10 lines
655 B
Bash
10 lines
655 B
Bash
|
#!/bin/sh
|
||
|
apt-get update && apt-get install -y ntp curl memcached haveged
|
||
|
curl https://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | apt-key add -
|
||
|
echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" > /etc/apt/sources.list.d/freeswitch.list
|
||
|
echo "deb http://files.freeswitch.org/repo/deb/debian-unstable/ jessie main" >> /etc/apt/sources.list.d/freeswitch.list
|
||
|
apt-get update && apt-get install -y freeswitch-meta-all freeswitch-all-dbg gdb
|
||
|
|
||
|
#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:'
|