forked from norman/fusionpbx-install.sh-github-mirror
Start working on Ubuntu
This commit is contained in:
24
ubuntu/resources/switch/package-all.sh
Executable file
24
ubuntu/resources/switch/package-all.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
#move to script directory so all relative paths work
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
#includes
|
||||
. ../config.sh
|
||||
. ../colors.sh
|
||||
. ../environment.sh
|
||||
. ../arguments.sh
|
||||
|
||||
apt-get update && apt-get install -y ntp curl memcached haveged
|
||||
|
||||
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
|
||||
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
|
||||
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:'
|
||||
Reference in New Issue
Block a user