123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #!/bin/sh
- #move to script directory so all relative paths work
- cd "$(dirname "$0")"
- #includes
- . ./config.sh
- . ./colors.sh
- . ./environment.sh
- #TODO fix or remove source installation
- if [ .$switch_source = .true ]; then
- echo 'Building from source on devuan will most liley fail, aborting.'
- exit 1
- 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
- #sysvinit service
- switch/source-sysvinit.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
- #sysvinit service
- switch/package-sysvinit.sh
- fi
|