Start working on Ubuntu

This commit is contained in:
root
2019-06-03 12:48:27 +00:00
parent 8b50ca4b96
commit cf63fc5f4b
64 changed files with 3472 additions and 0 deletions

51
ubuntu/resources/switch.sh Executable file
View File

@@ -0,0 +1,51 @@
#!/bin/sh
#move to script directory so all relative paths work
cd "$(dirname "$0")"
#includes
. ./config.sh
if [ .$switch_source = .true ]; then
if [ ."$switch_branch" = "master" ]; then
switch/source-master.sh
else
switch/source-release.sh
fi
#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