From 5a759bc66657d4538f6b92d874a0340673d58f80 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 4 Mar 2017 14:01:43 -0700 Subject: [PATCH] Create switch.sh --- debian/resources/switch.sh | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 debian/resources/switch.sh diff --git a/debian/resources/switch.sh b/debian/resources/switch.sh new file mode 100644 index 0000000..55b8e66 --- /dev/null +++ b/debian/resources/switch.sh @@ -0,0 +1,43 @@ + + +if [ .$USE_SWITCH_SOURCE = .true ]; then + if [ .$USE_SWITCH_MASTER = .true ]; then + resources/switch/source-master.sh + else + resources/switch/source-release.sh + fi + + #copy the switch conf files to /etc/freeswitch + resources/switch/conf-copy.sh + + #set the file permissions + resources/switch/source-permissions.sh + + #systemd service + resources/switch/source-systemd.sh + +else + if [ .$USE_SWITCH_MASTER = .true ]; then + if [ .$USE_SWITCH_PACKAGE_ALL = .true ]; then + resources/switch/package-master-all.sh + else + resources/switch/package-master.sh + fi + else + if [ .$USE_SWITCH_PACKAGE_ALL = .true ]; then + resources/switch/package-all.sh + else + resources/switch/package-release.sh + fi + fi + + #copy the switch conf files to /etc/freeswitch + resources/switch/conf-copy.sh + + #set the file permissions + resources/switch/package-permissions.sh + + #systemd service + resources/switch/package-systemd.sh + +fi