fusionpbx-install.sh/freebsd/resources/fusionpbx.sh

28 lines
581 B
Bash
Raw Normal View History

#!/bin/sh
#move to script directory so all relative paths work
cd "$(dirname "$0")"
. ./config.sh
. ./colors.sh
#send a message
verbose "Installing FusionPBX"
#install dependencies
2017-03-26 21:24:16 +02:00
pkg install --yes git ghostscript9-base tiff
if [ .$system_branch = "master" ]; then
verbose "Using master"
branch=""
else
2017-03-26 21:24:16 +02:00
system_version=4.2
verbose "Using version $system_version"
branch="-b $system_version"
fi
#get the source code
git clone $branch https://github.com/fusionpbx/fusionpbx.git /var/www/fusionpbx
2017-03-26 21:24:16 +02:00
chown -R www:www /var/www/fusionpbx
chmod -R 755 /var/www/fusionpbx/secure