Merge pull request 'update default install options for internal development for nsi' (#1) from nsi-defaults into installer

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2026-04-06 12:45:06 +00:00
14 changed files with 42 additions and 25 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/ 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 ```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 cd /usr/src/fusionpbx-install.sh/debian && ./install.sh
``` ```
### Ubuntu and Raspberry OS ### Ubuntu and Raspberry OS
```sh ```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 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. Please note that the source installation and installation on ARM is not fully tested.
```sh ```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 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 ```sh
pkg install --yes git 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/ cd /usr/src/fusionpbx-install.sh/freebsd/
./install.sh ./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. 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 ```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 cd /usr/src/fusionpbx-install.sh/centos && ./install.sh
``` ```

View File

@@ -4,7 +4,7 @@
yum -y install git yum -y install git
#get the install script #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 #change the working directory
cd /usr/src/fusionpbx-install.sh/centos cd /usr/src/fusionpbx-install.sh/centos

View File

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

11
debian/install.sh vendored
View File

@@ -8,8 +8,17 @@ cd "$(dirname "$0")"
. ./resources/colors.sh . ./resources/colors.sh
. ./resources/environment.sh . ./resources/environment.sh
#Git Credentials
printf "Git email: "
read GIT_EMAIL
printf "Git password/token: "
stty -echo
read GIT_PASSWORD
stty echo
printf "\n"
# removes the cd img from the /etc/apt/sources.list file (not needed after base install) # removes the cd img from the /etc/apt/sources.list file (not needed after base install)
sed -i '/cdrom:/d' /etc/apt/sources.list ...sed -i '/cdrom:/d' /etc/apt/sources.list
#Update to latest packages #Update to latest packages
verbose "Update installed packages" verbose "Update installed packages"

View File

@@ -10,7 +10,7 @@ apt-get update && apt-get upgrade -y
apt-get install -y git lsb-release apt-get install -y git lsb-release
#get the install script #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 #change the working directory
cd /usr/src/fusionpbx-install.sh/debian cd /usr/src/fusionpbx-install.sh/debian

View File

@@ -1,7 +1,15 @@
# FusionPBX Settings # FusionPBX Settings
domain_name=ip_address # hostname, ip_address or a custom value # Get machine IP for default domain
system_username=admin # default username admin DEFAULT_IP=$(hostname -I | awk '{print $1}')
printf "Domain name [default: %s]: " "$DEFAULT_IP"
read domain_name
domain_name=${domain_name:-$DEFAULT_IP}
printf "System username [default: admin]: "
read system_username
system_username=${system_username:-admin}
system_password=random # random or a custom value system_password=random # random or a custom value
system_branch=5.5 # master, 5.5 system_branch=5.5 # master, 5.5

View File

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

View File

@@ -7,7 +7,7 @@ apt-get -q update && apt-get upgrade -y
apt-get install -y git apt-get install -y git
#get the install script #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 #change the working directory
cd /usr/src/fusionpbx-install.sh/devuan cd /usr/src/fusionpbx-install.sh/devuan

View File

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

View File

@@ -4,7 +4,7 @@
pkg install --yes git pkg install --yes git
#get the install script #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 #change the working directory
cd /usr/src/fusionpbx-install.sh/freebsd/ 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 chown -R www:www /var/cache/fusionpbx
#get the source code #get the source code
git clone $branch https://github.com/fusionpbx/fusionpbx.git /usr/local/www/fusionpbx git clone $branch https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git/usr/local/www/fusionpbx
chown -R www:www /usr/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 apt-get install -y git lsb-release
#get the install script #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 #change the working directory
cd /usr/src/fusionpbx-install.sh/ubuntu cd /usr/src/fusionpbx-install.sh/ubuntu

View File

@@ -19,8 +19,8 @@ if [ .$system_branch = .'master' ]; then
verbose "Using master" verbose "Using master"
branch="" branch=""
else 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_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://github.com/fusionpbx/fusionpbx.git $system_major.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2) 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 system_version=$system_major.$system_minor
verbose "Using version $system_version" verbose "Using version $system_version"
branch="-b $system_version" branch="-b $system_version"
@@ -31,5 +31,5 @@ mkdir -p /var/cache/fusionpbx
chown -R www-data:www-data /var/cache/fusionpbx chown -R www-data:www-data /var/cache/fusionpbx
#get the source code #get the source code
git clone $branch https://github.com/fusionpbx/fusionpbx.git /var/www/fusionpbx git clone $branch https://$GIT_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git/var/www/fusionpbx
chown -R www-data:www-data /var/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 #Clone FusionPBX GIT from Master or 4.2
if ($system_branch -eq "stable") { $branch = "4.2" } if ($system_branch -eq "stable") { $branch = "4.2" }
else { $branch = ""} 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 #Grant permissions to FusionPBX folder
if ($iis_identity -ne "LocalSystem") { if ($iis_identity -ne "LocalSystem") {