Files
fusionpbx-install.sh/debian/resources/switch.sh
T

56 lines
1.0 KiB
Bash
Raw Normal View History

2017-03-04 14:15:36 -07:00
#!/bin/sh
2017-03-04 14:01:43 -07:00
2017-03-04 14:15:36 -07:00
#move to script directory so all relative paths work
cd "$(dirname "$0")"
2017-03-04 14:01:43 -07:00
2017-03-04 14:15:36 -07:00
#includes
. ./config.sh
2020-03-28 19:16:21 -06:00
. ./environment.sh
2017-03-04 14:15:36 -07:00
if [ .$switch_source = .true ]; then
if [ ."$switch_branch" = "master" ]; then
2017-03-04 21:58:27 -07:00
switch/source-master.sh
2017-03-04 14:01:43 -07:00
else
2017-03-04 21:58:27 -07:00
switch/source-release.sh
2017-03-04 14:01:43 -07:00
fi
2023-01-18 13:12:19 -07:00
#add sounds and music files
switch/source-sounds.sh
2017-03-04 14:01:43 -07:00
#copy the switch conf files to /etc/freeswitch
2017-03-04 21:58:27 -07:00
switch/conf-copy.sh
2017-03-04 14:01:43 -07:00
#set the file permissions
2019-02-21 10:09:11 -07:00
#switch/source-permissions.sh
switch/package-permissions.sh
2017-03-04 14:01:43 -07:00
#systemd service
2019-02-21 10:09:11 -07:00
#switch/source-systemd.sh
switch/package-systemd.sh
2017-03-04 14:15:36 -07:00
fi
2017-03-04 14:01:43 -07:00
2017-03-04 14:15:36 -07:00
if [ .$switch_package = .true ]; then
if [ ."$switch_branch" = "master" ]; then
if [ .$switch_package_all = .true ]; then
2017-03-04 21:58:27 -07:00
switch/package-master-all.sh
2017-03-04 14:01:43 -07:00
else
2017-03-04 21:58:27 -07:00
switch/package-master.sh
2017-03-04 14:01:43 -07:00
fi
else
2017-03-04 14:15:36 -07:00
if [ .$switch_package_all = .true ]; then
2017-03-04 21:58:27 -07:00
switch/package-all.sh
2017-03-04 14:01:43 -07:00
else
2017-03-04 21:58:27 -07:00
switch/package-release.sh
2017-03-04 14:01:43 -07:00
fi
fi
#copy the switch conf files to /etc/freeswitch
2017-03-04 21:58:27 -07:00
switch/conf-copy.sh
2017-03-04 14:01:43 -07:00
#set the file permissions
2017-03-04 21:58:27 -07:00
switch/package-permissions.sh
2017-03-04 14:01:43 -07:00
#systemd service
2017-03-04 21:58:27 -07:00
switch/package-systemd.sh
2017-03-04 14:01:43 -07:00
fi