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

56 lines
1.0 KiB
Bash
Raw Normal View History

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