Files
fusionpbx-install.sh/freebsd/resources/fusionpbx.sh
FusionPBX c116e82027 Add git config safe.directory
Add safe.directory configuration for FusionPBX repo
2026-05-11 23:02:39 +00:00

34 lines
735 B
Bash
Executable File

#!/bin/sh
#move to script directory so all relative paths work
cd "$(dirname "$0")"
#includes
. ./config.sh
. ./colors.sh
#send a message
verbose "Installing FusionPBX"
#install dependencies
pkg install --yes git ossp-uuid
#set the version
if [ .$system_branch = .'master' ]; then
verbose "Using master"
branch=""
else
verbose "Using version $system_branch"
branch="-b $system_branch"
fi
#add the cache directory
mkdir -p /var/cache/fusionpbx
chown -R www:www /var/cache/fusionpbx
#get the source code
git clone $branch https://github.com/fusionpbx/fusionpbx.git /usr/local/www/fusionpbx
chown -R www:www /usr/local/www/fusionpbx
cd /usr/local/www/fusionpbx
git config --global --add safe.directory /usr/local/www/fusionpbx