forked from norman/fusionpbx-install.sh-github-mirror
installation script for OS Devuan (#95)
* adding devuan * add devaun desc to README make update and upgrade more noisy correct path for devuan in pre-install * some untested code for the source install - source installation is broken in Debian installation script and I have not debugged the problem. Focusing on the packaged version first.
This commit is contained in:
51
devuan/resources/switch.sh
Executable file
51
devuan/resources/switch.sh
Executable file
@@ -0,0 +1,51 @@
|
||||
#!/bin/sh
|
||||
|
||||
#move to script directory so all relative paths work
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
#includes
|
||||
. ./config.sh
|
||||
|
||||
verbose "Installing FreeSWITCH"
|
||||
|
||||
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
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user