2017-03-25 18:41:47 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
#move to script directory so all relative paths work
|
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
|
|
|
|
|
#includes
|
|
|
|
|
. ./config.sh
|
|
|
|
|
|
2017-04-24 23:35:01 +02:00
|
|
|
#install the package
|
2017-04-25 01:19:55 +02:00
|
|
|
if [ .$switch_source = ."package" ]; then
|
2017-04-24 23:35:01 +02:00
|
|
|
#run the package install
|
|
|
|
|
switch/package-release.sh
|
|
|
|
|
|
|
|
|
|
#copy the switch conf files
|
2017-04-25 10:46:36 +02:00
|
|
|
switch/package-copy.sh
|
2017-04-24 23:35:01 +02:00
|
|
|
|
|
|
|
|
#set the file permissions
|
|
|
|
|
switch/package-permissions.sh
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
#install from source
|
2017-04-25 01:19:55 +02:00
|
|
|
if [ .$switch_source = ."source" ]; then
|
2017-04-24 23:35:01 +02:00
|
|
|
#compile the source
|
2017-03-25 18:41:47 +01:00
|
|
|
if [ ."$switch_branch" = "master" ]; then
|
|
|
|
|
switch/source-master.sh
|
|
|
|
|
else
|
|
|
|
|
switch/source-release.sh
|
|
|
|
|
fi
|
|
|
|
|
|
2017-03-25 22:25:10 +01:00
|
|
|
#copy the switch conf files
|
2017-04-25 10:46:36 +02:00
|
|
|
switch/source-copy.sh
|
2017-03-25 18:41:47 +01:00
|
|
|
|
|
|
|
|
#set the file permissions
|
|
|
|
|
switch/source-permissions.sh
|
|
|
|
|
fi
|
2017-06-24 19:54:14 +02:00
|
|
|
|
2017-06-24 20:52:01 +02:00
|
|
|
#restart the service
|
|
|
|
|
service freeswitch restart
|
2017-06-24 19:54:14 +02:00
|
|
|
|