2019-06-03 14:48:27 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
#move to script directory so all relative paths work
|
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
|
|
|
|
|
#includes
|
|
|
|
|
. ./config.sh
|
2024-08-31 02:06:50 +02:00
|
|
|
. ./environment.sh
|
2019-06-03 14:48:27 +02:00
|
|
|
|
|
|
|
|
if [ .$switch_source = .true ]; then
|
|
|
|
|
if [ ."$switch_branch" = "master" ]; then
|
|
|
|
|
switch/source-master.sh
|
|
|
|
|
else
|
|
|
|
|
switch/source-release.sh
|
|
|
|
|
fi
|
|
|
|
|
|
2023-01-19 06:11:33 +01:00
|
|
|
#add sounds and music files
|
|
|
|
|
switch/source-sounds.sh
|
|
|
|
|
|
2019-06-03 14:48:27 +02:00
|
|
|
#copy the switch conf files to /etc/freeswitch
|
|
|
|
|
switch/conf-copy.sh
|
|
|
|
|
|
|
|
|
|
#set the file permissions
|
|
|
|
|
#switch/source-permissions.sh
|
|
|
|
|
switch/package-permissions.sh
|
|
|
|
|
|
|
|
|
|
#systemd service
|
|
|
|
|
#switch/source-systemd.sh
|
|
|
|
|
switch/package-systemd.sh
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ .$switch_package = .true ]; then
|
|
|
|
|
if [ ."$switch_branch" = "master" ]; then
|
|
|
|
|
if [ .$switch_package_all = .true ]; then
|
|
|
|
|
switch/package-master-all.sh
|
|
|
|
|
else
|
|
|
|
|
switch/package-master.sh
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
if [ .$switch_package_all = .true ]; then
|
|
|
|
|
switch/package-all.sh
|
|
|
|
|
else
|
|
|
|
|
switch/package-release.sh
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
#copy the switch conf files to /etc/freeswitch
|
|
|
|
|
switch/conf-copy.sh
|
|
|
|
|
|
|
|
|
|
#set the file permissions
|
|
|
|
|
switch/package-permissions.sh
|
|
|
|
|
|
|
|
|
|
#systemd service
|
|
|
|
|
switch/package-systemd.sh
|
|
|
|
|
fi
|