13 Commits

Author SHA1 Message Date
0321a27fdc change file permissions 2026-04-06 19:03:07 -04:00
61a873dda1 optimize configure.sh 2026-04-06 18:53:07 -04:00
360b9ca28d update prompt architecture to add install sections. 2026-04-06 18:34:13 -04:00
69d548b0d4 add test collection for debian 2026-04-06 13:51:31 -04:00
7c4d0d1e11 fix typo 2026-04-06 12:39:57 -04:00
adf53bb33f fix fusionpbx git repo location 2026-04-06 11:45:13 -04:00
d12a870efb revert 802f168bde
revert add prompt for install domain and admin user name.
2026-04-06 15:39:36 +00:00
28e960adef revert 787216ebff
revert add git auth block to install file.
2026-04-06 15:37:20 +00:00
78e081320d Merge pull request 'update default install options for internal development for nsi' (#1) from nsi-defaults into installer
Reviewed-on: #1
2026-04-06 12:45:06 +00:00
5db4a3f259 update fusionpbx git repo location. 2026-04-06 08:40:27 -04:00
802f168bde add prompt for install domain and admin user name. 2026-04-04 07:31:07 -04:00
787216ebff add git auth block to install file. 2026-04-04 07:22:52 -04:00
af3a9b2d16 update repository url for internal development 2026-04-04 07:03:13 -04:00
16 changed files with 411 additions and 52 deletions

View File

@@ -9,13 +9,13 @@ A quick install guide & scripts for installing FusionPBX. It is recommended to s
Debian is the preferred operating system by the FreeSWITCH developers. It supports the latest video dependencies and should be used if you want to do video mixing. Download Debian at https://cdimage.debian.org/cdimage/release/current/
```sh
wget -O - https://raw.githubusercontent.com/fusionpbx/fusionpbx-install.sh/master/debian/pre-install.sh | sh;
wget -O - https://git.nsinnovations.net/nsinnovations/fusionpbx-install.sh/raw/branch/installer/debian/pre-install.sh | sh;
cd /usr/src/fusionpbx-install.sh/debian && ./install.sh
```
### Ubuntu and Raspberry OS
```sh
wget -O - https://raw.githubusercontent.com/fusionpbx/fusionpbx-install.sh/master/ubuntu/pre-install.sh | sh;
wget -O - https://git.nsinnovations.net/nsinnovations/fusionpbx-install.sh/raw/branch/installer/ubuntu/pre-install.sh | sh;
cd /usr/src/fusionpbx-install.sh/ubuntu && ./install.sh
```
@@ -25,7 +25,7 @@ Devuan ASCII is based on Stretch, so you will find most of the same packages ava
Please note that the source installation and installation on ARM is not fully tested.
```sh
wget -O - https://raw.githubusercontent.com/fusionpbx/fusionpbx-install.sh/master/devuan/pre-install.sh | sh;
wget -O - https://git.nsinnovations.net/nsinnovations/fusionpbx-install.sh/raw/branch/installer/devuan/pre-install.sh | sh;
cd /usr/src/fusionpbx-install.sh/devuan && ./install.sh
```
@@ -34,7 +34,7 @@ FreeBSD is an operating system that has many great features like ZFS, HAST, CARP
```sh
pkg install --yes git
cd /usr/src && git clone https://github.com/fusionpbx/fusionpbx-install.sh.git
cd /usr/src && git clone https://git.nsinnovations.net/nsinnovations/fusionpbx-install.sh.git
cd /usr/src/fusionpbx-install.sh/freebsd/
./install.sh
```
@@ -43,7 +43,7 @@ cd /usr/src/fusionpbx-install.sh/freebsd/
CentOS operating system is a requirement for some companies. Don't expect video mixing to work. It will likely be a year or more for video mixing dependencies to be updated enough to work in CentOS.
```sh
wget -O - https://raw.githubusercontent.com/fusionpbx/fusionpbx-install.sh/master/centos/pre-install.sh | sh
wget -O - https://git.nsinnovations.net/nsinnovations/fusionpbx-install.sh/raw/branch/installer/centos/pre-install.sh | sh
cd /usr/src/fusionpbx-install.sh/centos && ./install.sh
```

View File

@@ -4,7 +4,7 @@
yum -y install git
#get the install script
cd /usr/src && git clone https://github.com/fusionpbx/fusionpbx-install.sh.git
cd /usr/src && git clone https://git.nsinnovations.net/nsinnovations/fusionpbx-install.sh.git
#change the working directory
cd /usr/src/fusionpbx-install.sh/centos

View File

@@ -24,8 +24,8 @@ if [ .$system_branch = .'master' ]; then
verbose "Using master"
BRANCH=""
else
FUSION_MAJOR=$(git ls-remote --heads https://github.com/fusionpbx/fusionpbx.git | cut -d/ -f 3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f1)
FUSION_MINOR=$(git ls-remote --tags https://github.com/fusionpbx/fusionpbx.git $FUSION_MAJOR.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2)
FUSION_MAJOR=$(git ls-remote --heads https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git| cut -d/ -f 3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f1)
FUSION_MINOR=$(git ls-remote --tags https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git$FUSION_MAJOR.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2)
FUSION_VERSION=$FUSION_MAJOR.$FUSION_MINOR
verbose "Using version $FUSION_VERSION"
BRANCH="-b $FUSION_VERSION"
@@ -36,7 +36,7 @@ mkdir -p /var/cache/fusionpbx
chown -R freeswitch:daemon /var/cache/fusionpbx
#get the source code
git clone $BRANCH https://github.com/fusionpbx/fusionpbx.git /var/www/fusionpbx
git clone $BRANCH https://git.nsinnovations.net/nsinnovations/fusionpbx.gitvar/www/fusionpbx
#send a message
verbose "FusionPBX Installed"

312
debian/configure.sh vendored Normal file
View File

@@ -0,0 +1,312 @@
#!/bin/sh
# configure.sh - Interactively collect variables and write resources/config.sh
# Drop this file alongside install.sh in the debian/ (or ubuntu/, devuan/, etc.) directory.
# It is sourced/called by install.sh BEFORE resources/config.sh is sourced.
#
# Usage (standalone): ./configure.sh
# Usage (from install): . ./configure.sh
cd "$(dirname "$0")" 2>/dev/null || true
CONFIG_FILE="./resources/config.sh"
_CREDS_FILE="/root/.git-credentials"
# ===========================================================================
# Defaults — every variable is pre-populated so sections with no
# customization need no else branch at all.
# ===========================================================================
domain_name=ip_address ; system_username=admin
system_password=random ; system_branch=5.5
php_version=8.2 ; letsencrypt_folder=true
switch_branch=stable ; switch_source=true
switch_package=false ; switch_version=1.10.12
switch_tls=true ; switch_token=
sofia_version=1.13.17
database_name=fusionpbx ; database_username=fusionpbx
database_password=random ; database_repo=official
database_version=18 ; database_host=127.0.0.1
database_port=5432 ; database_backup=false
application_transcribe=true ; application_speech=true
application_language_model=true ; application_device_logs=true
application_dialplan_tools=false; application_edit=false
application_sip_trunks=false
_git_credentials_written=false
# ===========================================================================
# Helpers
# ===========================================================================
# ask <var> <prompt> <default>
ask() {
printf "%s [%s]: " "$2" "$3"
read -r _input </dev/tty
eval "${1}=\"${_input:-$3}\""
}
# ask_secret <var> <prompt> — no echo
ask_secret() {
if stty -echo 2>/dev/null; then
printf "%s: " "$2"
read -r _input </dev/tty
stty echo; echo ""
else
printf "%s (input visible): " "$2"
read -r _input </dev/tty
fi
eval "${1}=\"${_input}\""
}
# ask_yn <prompt> <default y|n> — returns 0=yes 1=no
ask_yn() {
while true; do
printf "%s (y/n) [%s]: " "$1" "$2"
read -r _input </dev/tty
case "${_input:-$2}" in
y|Y|yes|YES) return 0 ;;
n|N|no|NO) return 1 ;;
*) echo " Please enter y or n." ;;
esac
done
}
# ask_bool <var> <prompt> <default true|false> — wraps ask_yn
ask_bool() {
_yn=$([ "$3" = "true" ] && echo "y" || echo "n")
if ask_yn "$2" "$_yn"; then eval "${1}=true"
else eval "${1}=false"
fi
}
# write_git_credentials <server>
write_git_credentials() {
_srv="$1"
ask _git_username "Git username or email" ""
[ -z "$_git_username" ] && { echo " No username entered — skipping."; return; }
ask_secret _git_password "Git password or personal access token"
# URL-encode characters that break the credentials file URL format
_enc_u=$(printf '%s' "$_git_username" | sed 's/%/%25/g;s/ /%20/g;s/:/%3A/g;s/@/%40/g')
_enc_p=$(printf '%s' "$_git_password" | sed 's/%/%25/g;s/ /%20/g;s/:/%3A/g;s/@/%40/g')
# Remove any pre-existing entry for this server, then append
[ -f "$_CREDS_FILE" ] && sed -i "/@${_srv}/d" "$_CREDS_FILE"
printf 'https://%s:%s@%s\n' "$_enc_u" "$_enc_p" "$_srv" >> "$_CREDS_FILE"
chmod 600 "$_CREDS_FILE"
_git_credentials_written=true
echo " Credentials written to $_CREDS_FILE"
unset _git_password _enc_p _git_username _enc_u
}
# ===========================================================================
echo ""
echo "============================================================"
echo " FusionPBX Installer - Configuration Setup"
echo " Values will be written to: $CONFIG_FILE"
echo " Press ENTER to accept the default shown in [brackets]."
echo "============================================================"
echo ""
# ===========================================================================
# SECTION 1 — Basic Settings
# ===========================================================================
echo "------------------------------------------------------------"
echo " Basic Settings"
echo "------------------------------------------------------------"
if ask_yn "Customize basic settings" "y"; then
echo ""
ask domain_name "Domain name (hostname, ip_address, or custom)" "ip_address"
ask system_username "FusionPBX admin username" "admin"
ask system_password "FusionPBX admin password (random = auto)" "random"
ask system_branch "FusionPBX branch (master, 5.5)" "5.5"
ask php_version "PHP version (8.3, 8.2, 8.1)" "8.2"
ask_bool letsencrypt_folder "Create Let's Encrypt folder structure" "true"
echo ""
else
echo " Using defaults."; echo ""
fi
# ===========================================================================
# SECTION 2 — Advanced Install Settings
# ===========================================================================
echo "------------------------------------------------------------"
echo " Advanced Install Settings (FreeSWITCH / Sofia-Sip / Database)"
echo "------------------------------------------------------------"
if ask_yn "Customize advanced settings" "n"; then
echo ""
echo " -- FreeSWITCH --"
ask switch_branch " Branch (master, stable)" "stable"
ask_bool switch_source " Compile from source" "true"
ask_bool switch_package " Install from binary package" "false"
ask switch_version " Source version (source builds only)" "1.10.12"
ask_bool switch_tls " Enable TLS" "true"
ask switch_token " SignalWire auth token (blank if none)" ""
echo ""
echo " -- Sofia-Sip --"
ask sofia_version " Release version" "1.13.17"
echo ""
echo " -- Database --"
ask database_name " Database name" "fusionpbx"
ask database_username " Database username" "fusionpbx"
ask database_password " Database password (random = auto)" "random"
ask database_repo " PostgreSQL repo (official, system)" "official"
ask database_version " PostgreSQL version" "18"
ask database_host " Database host" "127.0.0.1"
ask database_port " Database port" "5432"
ask_bool database_backup " Enable database backup" "false"
echo ""
else
echo " Using defaults."; echo ""
fi
# ===========================================================================
# SECTION 3 — Additional Applications
# ===========================================================================
echo "------------------------------------------------------------"
echo " Additional Applications"
echo "------------------------------------------------------------"
if ask_yn "Customize additional applications" "y"; then
echo ""
ask_bool application_transcribe "Install Speech-to-Text (transcribe)" "true"
ask_bool application_speech "Install Text-to-Speech" "true"
ask_bool application_language_model "Install Language Model" "true"
ask_bool application_device_logs "Log device provision requests" "true"
ask_bool application_dialplan_tools "Install additional dialplan applications" "false"
ask_bool application_edit "Install XML/Script/PHP editor" "false"
ask_bool application_sip_trunks "Install registration-based SIP trunks" "false"
echo ""
else
echo " Using defaults."; echo ""
fi
# ===========================================================================
# SECTION 4 — Git Credentials
# ===========================================================================
_git_server=$(grep 'git clone' ./resources/fusionpbx.sh \
| grep -o 'https://[^/]*' | sed 's|https://||' | head -1)
echo "------------------------------------------------------------"
echo " Git Credentials"
echo "------------------------------------------------------------"
echo " Server detected: ${_git_server:-<not found>}"
if ask_yn "Configure git credentials" "y"; then
echo ""
write_git_credentials "$_git_server"
echo ""
else
echo " Skipping."; echo ""
fi
# ===========================================================================
# SUMMARY
# ===========================================================================
cat <<EOF
============================================================
Configuration Summary
============================================================
Basic Settings
domain_name = $domain_name
system_username = $system_username
system_password = $system_password
system_branch = $system_branch
php_version = $php_version
letsencrypt_folder = $letsencrypt_folder
Advanced Settings (FreeSWITCH / Sofia-Sip / Database)
switch_branch = $switch_branch
switch_source = $switch_source
switch_package = $switch_package
switch_version = $switch_version
switch_tls = $switch_tls
switch_token = ${switch_token:-<not set>}
sofia_version = $sofia_version
database_name = $database_name
database_username = $database_username
database_password = $database_password
database_repo = $database_repo
database_version = $database_version
database_host = $database_host
database_port = $database_port
database_backup = $database_backup
Additional Applications
transcribe = $application_transcribe
speech = $application_speech
language_model = $application_language_model
device_logs = $application_device_logs
dialplan_tools = $application_dialplan_tools
edit = $application_edit
sip_trunks = $application_sip_trunks
Git Credentials
git_server = ${_git_server:-<not detected>}
credentials written = $_git_credentials_written
============================================================
EOF
if ! ask_yn "Continue with installation using these settings" "y"; then
echo ""
echo "Installation cancelled. No changes have been made."
echo ""
exit 1
fi
echo ""
# ===========================================================================
# Write config.sh
# ===========================================================================
cat > "$CONFIG_FILE" <<EOF
#!/bin/sh
# FusionPBX Settings
domain_name=${domain_name} # hostname, ip_address or a custom value
system_username=${system_username} # default username admin
system_password=${system_password} # random or a custom value
system_branch=${system_branch} # master, 5.5
# FreeSWITCH Settings
switch_branch=${switch_branch} # master, stable
switch_source=${switch_source} # true (source compile) or false (binary package)
switch_package=${switch_package} # true (binary package) or false (source compile)
switch_version=${switch_version} # which source code to download, only for source
switch_tls=${switch_tls} # true or false
switch_token=${switch_token} # Get the auth token from https://signalwire.com
# Signup or Login -> Profile -> Personal Auth Token
# Sofia-Sip Settings
sofia_version=${sofia_version} # release-version for sofia-sip to use
# Database Settings
database_name=${database_name} # Database name (safe characters A-Z, a-z, 0-9)
database_username=${database_username} # Database username (safe characters A-Z, a-z, 0-9)
database_password=${database_password} # random or a custom value (safe characters A-Z, a-z, 0-9)
database_repo=${database_repo} # PostgreSQL official, system
database_version=${database_version} # requires repo official
database_host=${database_host} # hostname or IP address
database_port=${database_port} # port number
database_backup=${database_backup} # true or false
# General Settings
php_version=${php_version} # PHP version 8.3, 8.2, 8.1
letsencrypt_folder=${letsencrypt_folder} # true or false
# Optional Applications
application_transcribe=${application_transcribe} # Speech to Text
application_speech=${application_speech} # Text to Speech
application_language_model=${application_language_model} # Language model
application_device_logs=${application_device_logs} # Log device provision requests
application_dialplan_tools=${application_dialplan_tools} # Add additional dialplan applications
application_edit=${application_edit} # Editor for XML, Provision, Scripts, and PHP
application_sip_trunks=${application_sip_trunks} # Registration-based SIP trunks
EOF
chmod 600 "$CONFIG_FILE"
echo "============================================================"
echo " Configuration saved to: $CONFIG_FILE"
echo "============================================================"
echo ""

9
debian/install.sh vendored
View File

@@ -3,6 +3,9 @@
#move to script directory so all relative paths work
cd "$(dirname "$0")"
#collect configuration variables (writes resources/config.sh)
. ./configure.sh
#includes
. ./resources/config.sh
. ./resources/colors.sh
@@ -25,6 +28,10 @@ apt-get install -y dialog
apt-get install -y nano
apt-get install -y net-tools
apt-get install -y gpg
apt-get install -y git
#Git global config, credential store, and safe directory
resources/git.sh
#SNMP
apt-get install -y snmpd
@@ -65,4 +72,4 @@ resources/switch.sh
server_address=$(hostname -I)
#add the database schema, user and groups
resources/finish.sh
resources/finish.sh

View File

@@ -10,7 +10,7 @@ apt-get update && apt-get upgrade -y
apt-get install -y git lsb-release
#get the install script
cd /usr/src && git clone https://github.com/fusionpbx/fusionpbx-install.sh.git
cd /usr/src && git clone https://git.nsinnovations.net/nsinnovations/fusionpbx-install.sh.git
#change the working directory
cd /usr/src/fusionpbx-install.sh/debian

View File

@@ -1,40 +1,42 @@
#!/bin/sh
# FusionPBX Settings
domain_name=ip_address # hostname, ip_address or a custom value
system_username=admin # default username admin
system_password=random # random or a custom value
system_branch=5.5 # master, 5.5
domain_name=ip_address # hostname, ip_address or a custom value
system_username=admin # default username admin
system_password=random # random or a custom value
system_branch=5.5 # master, 5.5
# FreeSWITCH Settings
switch_branch=stable # master, stable
switch_source=true # true (source compile) or false (binary package)
switch_package=false # true (binary package) or false (source compile)
switch_version=1.10.12 # which source code to download, only for source
switch_tls=true # true or false
switch_token= # Get the auth token from https://signalwire.com
# Signup or Login -> Profile -> Personal Auth Token
switch_branch=stable # master, stable
switch_source=true # true (source compile) or false (binary package)
switch_package=false # true (binary package) or false (source compile)
switch_version=1.10.12 # which source code to download, only for source
switch_tls=true # true or false
switch_token= # Get the auth token from https://signalwire.com
# Signup or Login -> Profile -> Personal Auth Token
# Sofia-Sip Settings
sofia_version=1.13.17 # release-version for sofia-sip to use
sofia_version=1.13.17 # release-version for sofia-sip to use
# Database Settings
database_name=fusionpbx # Database name (safe characters A-Z, a-z, 0-9)
database_username=fusionpbx # Database username (safe characters A-Z, a-z, 0-9)
database_password=random # random or a custom value (safe characters A-Z, a-z, 0-9)
database_repo=official # PostgreSQL official, system
database_version=18 # requires repo official
database_host=127.0.0.1 # hostname or IP address
database_port=5432 # port number
database_backup=false # true or false
database_name=fusionpbx # Database name (safe characters A-Z, a-z, 0-9)
database_username=fusionpbx # Database username (safe characters A-Z, a-z, 0-9)
database_password=random # random or a custom value (safe characters A-Z, a-z, 0-9)
database_repo=official # PostgreSQL official, system
database_version=18 # requires repo official
database_host=127.0.0.1 # hostname or IP address
database_port=5432 # port number
database_backup=false # true or false
# General Settings
php_version=8.2 # PHP version 8.3, 8.2, 8.1
letsencrypt_folder=true # true or false
php_version=8.2 # PHP version 8.3, 8.2, 8.1
letsencrypt_folder=true # true or false
# Optional Applications
application_transcribe=true # Speech to Text
application_speech=true # Text to Speech
application_language_model=true # Language model
application_device_logs=true # Log device provision requests
application_dialplan_tools=false # Add additional dialplan applications
application_edit=false # Editor for XML, Provision, Scripts, and PHP
application_sip_trunks=false # Registration-based SIP trunks
application_transcribe=true # Speech to Text
application_speech=true # Text to Speech
application_language_model=true # Language model
application_device_logs=true # Log device provision requests
application_dialplan_tools=false # Add additional dialplan applications
application_edit=false # Editor for XML, Provision, Scripts, and PHP
application_sip_trunks=false # Registration-based SIP trunks

View File

@@ -28,5 +28,5 @@ mkdir -p /var/cache/fusionpbx
chown -R www-data:www-data /var/cache/fusionpbx
#get the source code
git clone $branch https://github.com/fusionpbx/fusionpbx.git /var/www/fusionpbx
git clone $branch https://git.nsinnovations.net/nsinnovations/fusionpbx.git /var/www/fusionpbx
chown -R www-data:www-data /var/www/fusionpbx

38
debian/resources/git.sh vendored Executable file
View File

@@ -0,0 +1,38 @@
#!/bin/sh
# git.sh - Apply global git configuration required by the installer
# - credential.helper pointing to /root/.git-credentials
# (the file itself is written by configure.sh before install begins)
# - safe.directory for /var/www/fusionpbx (needed when git runs as root
# but the directory is owned by www-data, git >= 2.35.2 requirement)
#
# This script must be called after git is installed (handled by install.sh).
#move to script directory so all relative paths work
cd "$(dirname "$0")"
#includes
. ./config.sh
. ./colors.sh
verbose "Configuring global git settings"
CREDENTIALS_FILE="/root/.git-credentials"
# ---------------------------------------------------------------------------
# 1. Credential helper
# Wire git to the file-based store that configure.sh already populated.
# ---------------------------------------------------------------------------
git config --global credential.helper "store --file $CREDENTIALS_FILE"
verbose " credential.helper = store --file $CREDENTIALS_FILE"
# ---------------------------------------------------------------------------
# 2. Safe directory for /var/www/fusionpbx
# Git >= 2.35.2 refuses to operate on directories owned by a different
# user. The installer runs as root but chowns the checkout to www-data,
# so subsequent git operations (updates, pulls) fail without this.
# ---------------------------------------------------------------------------
git config --global --add safe.directory /var/www/fusionpbx
verbose " safe.directory += /var/www/fusionpbx"
verbose "Git configuration complete"

View File

@@ -7,7 +7,7 @@ apt-get -q update && apt-get upgrade -y
apt-get install -y git
#get the install script
cd /usr/src && git clone https://github.com/fusionpbx/fusionpbx-install.sh.git
cd /usr/src && git clone https://git.nsinnovations.net/nsinnovations/fusionpbx-install.sh.git
#change the working directory
cd /usr/src/fusionpbx-install.sh/devuan

View File

@@ -19,8 +19,8 @@ if [ .$system_branch = .'master' ]; then
verbose "Using master"
branch=""
else
system_major=$(git ls-remote --heads https://github.com/fusionpbx/fusionpbx.git | cut -d/ -f 3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f1)
system_minor=$(git ls-remote --tags https://github.com/fusionpbx/fusionpbx.git $system_major.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2)
system_major=$(git ls-remote --heads https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git| cut -d/ -f 3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f1)
system_minor=$(git ls-remote --tags https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git$system_major.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2)
system_version=$system_major.$system_minor
verbose "Using version $system_version"
branch="-b $system_version"
@@ -31,5 +31,5 @@ mkdir -p /var/cache/fusionpbx
chown -R www-data:www-data /var/cache/fusionpbx
#get the source code
git clone $branch https://github.com/fusionpbx/fusionpbx.git /var/www/fusionpbx
git clone $branch https://git.nsinnovations.net/nsinnovations/fusionpbx.gitvar/www/fusionpbx
chown -R www-data:www-data /var/www/fusionpbx

View File

@@ -4,7 +4,7 @@
pkg install --yes git
#get the install script
cd /usr/src && git clone https://github.com/fusionpbx/fusionpbx-install.sh.git
cd /usr/src && git clone https://git.nsinnovations.net/nsinnovations/fusionpbx-install.sh.git
#change the working directory
cd /usr/src/fusionpbx-install.sh/freebsd/

View File

@@ -27,5 +27,5 @@ 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
git clone $branch https://git.nsinnovations.net/nsinnovations/fusionpbx.gitusr/local/www/fusionpbx
chown -R www:www /usr/local/www/fusionpbx

View File

@@ -10,7 +10,7 @@ apt-get update && apt-get upgrade -y
apt-get install -y git lsb-release
#get the install script
cd /usr/src && git clone https://github.com/fusionpbx/fusionpbx-install.sh.git
cd /usr/src && git clone https://git.nsinnovations.net/nsinnovations/fusionpbx-install.sh.git
#change the working directory
cd /usr/src/fusionpbx-install.sh/ubuntu

View File

@@ -19,8 +19,8 @@ if [ .$system_branch = .'master' ]; then
verbose "Using master"
branch=""
else
system_major=$(git ls-remote --heads https://github.com/fusionpbx/fusionpbx.git | cut -d/ -f 3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f1)
system_minor=$(git ls-remote --tags https://github.com/fusionpbx/fusionpbx.git $system_major.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2)
system_major=$(git ls-remote --heads https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git| cut -d/ -f 3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f1)
system_minor=$(git ls-remote --tags https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git$system_major.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2)
system_version=$system_major.$system_minor
verbose "Using version $system_version"
branch="-b $system_version"
@@ -31,5 +31,5 @@ mkdir -p /var/cache/fusionpbx
chown -R www-data:www-data /var/cache/fusionpbx
#get the source code
git clone $branch https://github.com/fusionpbx/fusionpbx.git /var/www/fusionpbx
git clone $branch https://git.nsinnovations.net/nsinnovations/fusionpbx.gitvar/www/fusionpbx
chown -R www-data:www-data /var/www/fusionpbx

View File

@@ -23,7 +23,7 @@ Function Install-FusionPBX() {
#Clone FusionPBX GIT from Master or 4.2
if ($system_branch -eq "stable") { $branch = "4.2" }
else { $branch = ""}
Start-Process "C:\Program Files\Git\bin\git.exe" "clone $branch https://github.com/fusionpbx/fusionpbx.git C:/inetpub/FusionPBX/" -Wait
Start-Process "C:\Program Files\Git\bin\git.exe" "clone $branch https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.gitC:/inetpub/FusionPBX/" -Wait
#Grant permissions to FusionPBX folder
if ($iis_identity -ne "LocalSystem") {