forked from norman/fusionpbx-install.sh-github-mirror
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:
10
README.md
10
README.md
@@ -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
|
||||
```
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git/var/www/fusionpbx
|
||||
|
||||
#send a message
|
||||
verbose "FusionPBX Installed"
|
||||
|
||||
11
debian/install.sh
vendored
11
debian/install.sh
vendored
@@ -8,8 +8,17 @@ cd "$(dirname "$0")"
|
||||
. ./resources/colors.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)
|
||||
sed -i '/cdrom:/d' /etc/apt/sources.list
|
||||
...sed -i '/cdrom:/d' /etc/apt/sources.list
|
||||
|
||||
#Update to latest packages
|
||||
verbose "Update installed packages"
|
||||
|
||||
2
debian/pre-install.sh
vendored
2
debian/pre-install.sh
vendored
@@ -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
|
||||
|
||||
12
debian/resources/config.sh
vendored
12
debian/resources/config.sh
vendored
@@ -1,7 +1,15 @@
|
||||
|
||||
# FusionPBX Settings
|
||||
domain_name=ip_address # hostname, ip_address or a custom value
|
||||
system_username=admin # default username admin
|
||||
# Get machine IP for default domain
|
||||
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_branch=5.5 # master, 5.5
|
||||
|
||||
|
||||
2
debian/resources/fusionpbx.sh
vendored
2
debian/resources/fusionpbx.sh
vendored
@@ -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_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git/var/www/fusionpbx
|
||||
chown -R www-data:www-data /var/www/fusionpbx
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git/var/www/fusionpbx
|
||||
chown -R www-data:www-data /var/www/fusionpbx
|
||||
|
||||
@@ -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/
|
||||
|
||||
@@ -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_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git/usr/local/www/fusionpbx
|
||||
chown -R www:www /usr/local/www/fusionpbx
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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_EMAIL:$GIT_PASSWORD@git.nsinnovations.net/nsinnovations/fusionpbx.git/var/www/fusionpbx
|
||||
chown -R www-data:www-data /var/www/fusionpbx
|
||||
|
||||
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user