forked from norman/fusionpbx-install.sh-github-mirror
merge upstream
This commit is contained in:
2
debian/resources/config.sh
vendored
2
debian/resources/config.sh
vendored
@@ -9,7 +9,7 @@ system_branch=5.5 # master, 5.5
|
||||
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_version=1.11 # 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
|
||||
|
||||
18
debian/resources/nginx.sh
vendored
18
debian/resources/nginx.sh
vendored
@@ -17,6 +17,15 @@ if [ ."$cpu_architecture" = ."arm" ]; then
|
||||
if [ ."$os_codename" = ."bullseye" ]; then
|
||||
php_version=7.4
|
||||
fi
|
||||
if [ ."$os_codename" = ."bookworm" ]; then
|
||||
php_version=8.2
|
||||
fi
|
||||
if [ ."$os_codename" = ."trixie" ]; then
|
||||
php_version=8.4
|
||||
fi
|
||||
if [ ."$os_codename" = ."forky" ]; then
|
||||
php_version=8.4
|
||||
fi
|
||||
fi
|
||||
|
||||
#set the version of php
|
||||
@@ -86,6 +95,15 @@ if [ .$letsencrypt_folder = .true ]; then
|
||||
mkdir -p /var/www/letsencrypt/
|
||||
fi
|
||||
|
||||
# Ensure apache2 is stopped and cannot start
|
||||
if systemctl is-active --quiet apache2; then
|
||||
verbose "Stopping Apache to clear port 80/443..."
|
||||
systemctl stop apache2
|
||||
fi
|
||||
|
||||
# Prevent apache from starting at boot
|
||||
systemctl disable apache2
|
||||
|
||||
#flush systemd cache
|
||||
systemctl daemon-reload
|
||||
|
||||
|
||||
9
debian/resources/php.sh
vendored
9
debian/resources/php.sh
vendored
@@ -34,6 +34,12 @@ elif [ ."$cpu_architecture" = ."arm" ]; then
|
||||
if [ ."$os_codename" = ."bookworm" ]; then
|
||||
php_version=8.2
|
||||
fi
|
||||
if [ ."$os_codename" = ."trixie" ]; then
|
||||
php_version=8.4
|
||||
fi
|
||||
if [ ."$os_codename" = ."forky" ]; then
|
||||
php_version=8.4
|
||||
fi
|
||||
else
|
||||
#11.x - bullseye
|
||||
#10.x - buster
|
||||
@@ -154,7 +160,8 @@ if [ ."$php_version" = ."8.3" ]; then
|
||||
apt-get install -y --no-install-recommends php8.3 php8.3-common php8.3-cli php8.3-dev php8.3-fpm php8.3-pgsql php8.3-sqlite3 php8.3-odbc php8.3-curl php8.3-imap php8.3-xml php8.3-gd php8.3-mbstring php8.3-ldap php8.3-inotify php8.3-snmp
|
||||
fi
|
||||
if [ ."$php_version" = ."8.4" ]; then
|
||||
apt-get install -y --no-install-recommends php8.4 php8.4-common php8.4-cli php8.4-dev php8.4-fpm php8.4-pgsql php8.4-sqlite3 php8.4-odbc php8.4-curl php8.4-imap php8.4-xml php8.4-gd php8.4-mbstring php8.4-ldap php8.4-inotify php8.4-snmp
|
||||
apt-get install -y --no-install-recommends php8.4 php8.4-common php8.4-cli php8.4-dev php8.4-fpm php8.4-pgsql php8.4-sqlite3 php8.4-odbc php8.4-curl php8.4-xml php8.4-gd php8.4-mbstring php8.4-ldap php8.4-inotify php8.4-snmp
|
||||
apt-get install -y --no-install-recommends php8.4-imap
|
||||
fi
|
||||
|
||||
#update config if source is being used
|
||||
|
||||
3
debian/resources/sngrep.sh
vendored
3
debian/resources/sngrep.sh
vendored
@@ -11,7 +11,8 @@ cd "$(dirname "$0")"
|
||||
#add sngrep
|
||||
if [ ."$cpu_architecture" = ."arm" ]; then
|
||||
#source install
|
||||
apt-get install -y git autoconf automake gcc make libncurses5-dev libpcap-dev libssl-dev libpcre3-dev
|
||||
apt-get install -y git autoconf automake gcc make libncurses5-dev libpcap-dev libssl-dev
|
||||
apt-get install -y libpcre3-dev
|
||||
cd /usr/src && git clone https://github.com/irontec/sngrep
|
||||
cd /usr/src/sngrep && ./bootstrap.sh
|
||||
cd /usr/src/sngrep && ./configure
|
||||
|
||||
3
debian/resources/switch/source-master.sh
vendored
3
debian/resources/switch/source-master.sh
vendored
@@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
echo "Installing the FreeSWITCH source"
|
||||
DEBIAN_FRONTEND=none APT_LISTCHANGES_FRONTEND=none apt-get install -y ntpdate libapache2-mod-log-sql-ssl libfreetype6-dev git-buildpackage doxygen yasm nasm gdb git build-essential automake autoconf 'libtool-bin|libtool' python uuid-dev zlib1g-dev 'libjpeg8-dev|libjpeg62-turbo-dev' libncurses5-dev libssl-dev libpcre3-dev libcurl4-openssl-dev libldns-dev libedit-dev libspeexdsp-dev libspeexdsp-dev libsqlite3-dev perl libgdbm-dev libdb-dev bison libvlc-dev libvlccore-dev vlc-nox pkg-config ccache libpng-dev libvpx-dev libyuv-dev libopenal-dev libbroadvoice-dev libcodec2-dev libflite-dev libg7221-dev libilbc-dev libmongoc-dev libsilk-dev libsoundtouch-dev libmagickcore-dev liblua5.2-dev libopus-dev libsndfile-dev libopencv-dev libavformat-dev libx264-dev erlang-dev libldap2-dev libmemcached-dev libperl-dev portaudio19-dev python-dev libsnmp-dev libyaml-dev libmp4v2-dev
|
||||
DEBIAN_FRONTEND=none APT_LISTCHANGES_FRONTEND=none apt-get install -y libapache2-mod-log-sql-ssl libfreetype6-dev git-buildpackage doxygen yasm nasm gdb git build-essential automake autoconf 'libtool-bin|libtool' uuid-dev zlib1g-dev 'libjpeg8-dev|libjpeg62-turbo-dev' libncurses5-dev libssl-dev libcurl4-openssl-dev libldns-dev libedit-dev libspeexdsp-dev libspeexdsp-dev libsqlite3-dev perl libgdbm-dev libdb-dev bison libvlc-dev libvlccore-dev vlc-nox pkg-config ccache libpng-dev libvpx-dev libyuv-dev libopenal-dev libbroadvoice-dev libcodec2-dev libflite-dev libg7221-dev libilbc-dev libmongoc-dev libsilk-dev libsoundtouch-dev libmagickcore-dev liblua5.2-dev libopus-dev libsndfile-dev libopencv-dev libavformat-dev libx264-dev erlang-dev libldap2-dev libmemcached-dev libperl-dev portaudio19-dev libsnmp-dev libyaml-dev
|
||||
apt-get install -y unzip libpq-dev libvlc-dev memcached libshout3-dev libvpx-dev libmpg123-dev libmp3lame-dev
|
||||
apt-get install -y ntpdate python libpcre3-dev python-dev libmp4v2-dev
|
||||
|
||||
apt-get update && apt-get install -y ntp curl haveged
|
||||
curl https://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | apt-key add -
|
||||
|
||||
95
debian/resources/switch/source-release.sh
vendored
95
debian/resources/switch/source-release.sh
vendored
@@ -13,10 +13,12 @@ apt update && apt upgrade -y
|
||||
# install dependencies
|
||||
apt install -y autoconf automake devscripts g++ git-core libncurses5-dev libtool libtool-bin make libjpeg-dev
|
||||
apt install -y pkg-config flac libgdbm-dev libdb-dev gettext sudo equivs git dpkg-dev libpq-dev
|
||||
apt install -y liblua5.2-dev libtiff5-dev libperl-dev libcurl4-openssl-dev libsqlite3-dev libpcre3-dev
|
||||
apt install -y liblua5.2-dev libtiff5-dev libperl-dev libcurl4-openssl-dev libsqlite3-dev
|
||||
apt install -y devscripts libspeexdsp-dev libspeex-dev libldns-dev libedit-dev libopus-dev libmemcached-dev
|
||||
apt install -y libshout3-dev libmpg123-dev libmp3lame-dev yasm nasm libsndfile1-dev libuv1-dev libvpx-dev
|
||||
apt install -y libavformat-dev libswscale-dev libvlc-dev sox libsox-fmt-all
|
||||
apt install -y libtiff5-dev
|
||||
apt install -y libpcre3-dev
|
||||
|
||||
#install dependencies that depend on the operating system version
|
||||
if [ ."$os_codename" = ."noble" ]; then
|
||||
@@ -32,23 +34,17 @@ if [ ."$os_codename" = ."bullseye" ]; then
|
||||
apt install -y python3-distutils mlocate libvpx6 swig4.0
|
||||
fi
|
||||
if [ ."$os_codename" = ."trixie" ]; then
|
||||
apt install -y python3-distutils-extra plocate
|
||||
fi
|
||||
|
||||
#use master branch for Debian 13 for now
|
||||
if [ ."$os_codename" = ."trixie" ]; then
|
||||
switch_branch=master
|
||||
switch_version=1.10.13
|
||||
apt install -y python3-distutils-extra plocate libtiff-dev libpcre2-dev swig
|
||||
fi
|
||||
|
||||
# additional dependencies
|
||||
apt install -y sqlite3 unzip
|
||||
|
||||
#we are about to move out of the executing directory so we need to preserve it to return after we are done
|
||||
# preserve the executing directory, so we need to return after we are done
|
||||
CWD=$(pwd)
|
||||
|
||||
#install the following dependencies if the switch version is greater than 1.10.0
|
||||
if [ ."$switch_branch" = ."master" ] || [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then
|
||||
# install libks - dependency for switch versions greater than 1.10.0
|
||||
if [ ! -d /usr/src/libks ]; then
|
||||
|
||||
# libks build-requirements
|
||||
apt install -y cmake uuid-dev
|
||||
@@ -63,27 +59,39 @@ if [ ."$switch_branch" = ."master" ] || [ $(echo "$switch_version" | tr -d '.')
|
||||
|
||||
# libks C includes
|
||||
export C_INCLUDE_PATH=/usr/include/libks
|
||||
fi
|
||||
|
||||
# sofia-sip
|
||||
# sofia-sip - dependency for switch versions greater than 1.10.0
|
||||
if [ ! -d /usr/src/sofia-sip ]; then
|
||||
cd /usr/src
|
||||
if [ ."$sofia_version" = ."master" ]; then
|
||||
git clone https://github.com/freeswitch/sofia-sip.git sofia-sip
|
||||
cd sofia-sip
|
||||
elif [ ."$os_codename" = ."trixie" ]; then
|
||||
git clone https://github.com/freeswitch/sofia-sip.git sofia-sip
|
||||
cd sofia-sip
|
||||
else
|
||||
wget https://github.com/freeswitch/sofia-sip/archive/refs/tags/v$sofia_version.zip
|
||||
unzip v$sofia_version.zip
|
||||
cd sofia-sip-$sofia_version
|
||||
mv sofia-sip-$sofia_version sofia-sip
|
||||
cd sofia-sip
|
||||
fi
|
||||
sh autogen.sh
|
||||
./configure --enable-debug
|
||||
make -j $(getconf _NPROCESSORS_ONLN)
|
||||
make install
|
||||
fi
|
||||
|
||||
# spandsp
|
||||
# spandsp - dependency for switch versions greater than 1.10.0
|
||||
if [ ! -d /usr/src/spandsp ]; then
|
||||
cd /usr/src
|
||||
git clone https://github.com/freeswitch/spandsp.git spandsp
|
||||
cd spandsp
|
||||
if [ ."$sofia_version" != ."master" ] && [ ."$switch_branch" != ."master" ]; then
|
||||
if [ ."$sofia_version" != ."master" ]; then
|
||||
echo ""
|
||||
elif [ ."$os_codename" = ."trixie" ]; then
|
||||
echo ""
|
||||
else
|
||||
git reset --hard 0d2e6ac65e0e8f53d652665a743015a88bf048d4
|
||||
fi
|
||||
#/usr/bin/sed -i 's/AC_PREREQ(\[2\.71\])/AC_PREREQ([2.69])/g' /usr/src/spandsp/configure.ac
|
||||
@@ -115,19 +123,20 @@ fi
|
||||
#check for stable release
|
||||
if [ ."$switch_branch" != ."master" ] && [ ."$switch_branch" = ."stable" ]; then
|
||||
echo "Using version $switch_version"
|
||||
#1.8 and older
|
||||
if [ $(echo "$switch_version" | tr -d '.') -lt 1100 ]; then
|
||||
wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.zip
|
||||
unzip freeswitch-$switch_version.zip
|
||||
|
||||
# Get the source code using git
|
||||
if [ ."$switch_version" = ."1.11" ]; then
|
||||
git clone https://github.com/signalwire/freeswitch.git freeswitch-$switch_version
|
||||
|
||||
# Change the working directory
|
||||
cd /usr/src/freeswitch-$switch_version
|
||||
|
||||
# Reset repo just-in-case we are rebuilding
|
||||
#git reset --hard HEAD && git clean -fdx
|
||||
# Get the stable branch
|
||||
git checkout v$switch_version
|
||||
fi
|
||||
|
||||
#1.10.0 and newer
|
||||
if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then
|
||||
# Get the source code using git
|
||||
# Get the source code using git
|
||||
if [ ."$switch_version" = ."1.10.12" ]; then
|
||||
git clone https://github.com/fusionpbx/freeswitch freeswitch-$switch_version
|
||||
|
||||
# Change the working directory
|
||||
@@ -135,26 +144,26 @@ if [ ."$switch_branch" != ."master" ] && [ ."$switch_branch" = ."stable" ]; then
|
||||
|
||||
# Get the stable branch
|
||||
git checkout $switch_version
|
||||
|
||||
# Reset repo just-in-case we are rebuilding
|
||||
#git reset --hard origin/master && git clean -fdx
|
||||
|
||||
#wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.-release.zip
|
||||
#unzip freeswitch-$switch_version.-release.zip
|
||||
#mv freeswitch-$switch_version.-release freeswitch-$switch_version
|
||||
|
||||
# bootstrap is needed if using git
|
||||
./bootstrap.sh -j
|
||||
|
||||
#apply rtp timestamp patch - Fix RTP audio issues use the following for additional information. https://github.com/briteback/freeswitch/commit/9f8968ccabb8a4e0353016d4ea0ff99561b005f1
|
||||
#patch -u /usr/src/freeswitch-$switch_version/src/switch_rtp.c -i /usr/src/fusionpbx-install.sh/debian/resources/switch/source/switch_rtp.diff
|
||||
|
||||
#apply pull request 2300 to Fix session deadlock that results in stale or stuck calls. https://github.com/signalwire/freeswitch/pull/2300
|
||||
#patch -d /usr/src/freeswitch-$switch_version/src -i /usr/src/fusionpbx-install.sh/debian/resources/switch/source/pull_2300.diff
|
||||
|
||||
#apply mod_pgsql patch
|
||||
#patch -u /usr/src/freeswitch-$switch_version/src/mod/databases/mod_pgsql/mod_pgsql.c -i /usr/src/fusionpbx-install.sh/debian/resources/switch/source/mod_pgsql.patch
|
||||
fi
|
||||
|
||||
# Reset repo just-in-case we are rebuilding
|
||||
#git reset --hard origin/master && git clean -fdx
|
||||
|
||||
#wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.-release.zip
|
||||
#unzip freeswitch-$switch_version.-release.zip
|
||||
#mv freeswitch-$switch_version.-release freeswitch-$switch_version
|
||||
|
||||
# bootstrap is needed if using git
|
||||
./bootstrap.sh -j
|
||||
|
||||
#apply rtp timestamp patch - Fix RTP audio issues use the following for additional information. https://github.com/briteback/freeswitch/commit/9f8968ccabb8a4e0353016d4ea0ff99561b005f1
|
||||
#patch -u /usr/src/freeswitch-$switch_version/src/switch_rtp.c -i /usr/src/fusionpbx-install.sh/debian/resources/switch/source/switch_rtp.diff
|
||||
|
||||
#apply pull request 2300 to Fix session deadlock that results in stale or stuck calls. https://github.com/signalwire/freeswitch/pull/2300
|
||||
#patch -d /usr/src/freeswitch-$switch_version/src -i /usr/src/fusionpbx-install.sh/debian/resources/switch/source/pull_2300.diff
|
||||
|
||||
#apply mod_pgsql patch
|
||||
#patch -u /usr/src/freeswitch-$switch_version/src/mod/databases/mod_pgsql/mod_pgsql.c -i /usr/src/fusionpbx-install.sh/debian/resources/switch/source/mod_pgsql.patch
|
||||
fi
|
||||
|
||||
# enable required modules
|
||||
|
||||
8
debian/resources/switch/source-sounds.sh
vendored
8
debian/resources/switch/source-sounds.sh
vendored
@@ -7,6 +7,9 @@ cd "$(dirname "$0")"
|
||||
. ../config.sh
|
||||
. ../environment.sh
|
||||
|
||||
# Make the sounds directory
|
||||
mkdir -p /usr/share/freeswitch/sounds
|
||||
|
||||
# Change the working directory
|
||||
cd /usr/share/freeswitch/sounds
|
||||
|
||||
@@ -25,7 +28,10 @@ for sample_rate in $sample_rates; do
|
||||
/usr/bin/tar xvzf "freeswitch-sounds-en-us-callie-${sample_rate}-1.0.53.tar.gz"
|
||||
done
|
||||
|
||||
# Change to directory to the music directory
|
||||
# Make the music directory
|
||||
mkdir -p /usr/share/freeswitch/sounds/music
|
||||
|
||||
# Change the current directory to the music directory
|
||||
cd /usr/share/freeswitch/sounds/music
|
||||
|
||||
# Loop through each sample rate
|
||||
|
||||
31
debian/resources/upgrade/php.sh
vendored
31
debian/resources/upgrade/php.sh
vendored
@@ -7,34 +7,34 @@ cd "$(dirname "$0")"
|
||||
. ../config.sh
|
||||
|
||||
#remove php5
|
||||
/usr/bin/apt remove -y php5 php5-cli php5-fpm php5-pgsql php5-sqlite php5-odbc php5-curl php5-imap php5-gd
|
||||
/usr/bin/apt remove -y php5 php5-cli php5-fpm php5-pgsql php5-sqlite php5-odbc php5-curl php5-gd php5-imap
|
||||
|
||||
#remove php 7.0
|
||||
/usr/bin/apt remove -y php7.0 php7.0-cli php7.0-fpm php7.0-pgsql php7.0-sqlite3 php7.0-odbc php7.0-curl php7.0-imap php7.0-xml php7.0-gd
|
||||
/usr/bin/apt remove -y php7.0 php7.0-cli php7.0-fpm php7.0-pgsql php7.0-sqlite3 php7.0-odbc php7.0-curl php7.0-xml php7.0-gd php7.0-imap
|
||||
|
||||
#remove php 7.1
|
||||
/usr/bin/apt remove -y php7.1 php7.1-cli php7.1-fpm php7.1-pgsql php7.1-sqlite3 php7.1-odbc php7.1-curl php7.1-imap php7.1-xml php7.1-gd
|
||||
/usr/bin/apt remove -y php7.1 php7.1-cli php7.1-fpm php7.1-pgsql php7.1-sqlite3 php7.1-odbc php7.1-curl php7.1-xml php7.1-gd php7.1-imap
|
||||
|
||||
#remove php 7.2
|
||||
/usr/bin/apt remove -y php7.2 php7.2-cli php7.2-fpm php7.2-pgsql php7.2-sqlite3 php7.2-odbc php7.2-curl php7.2-imap php7.2-xml php7.2-gd
|
||||
/usr/bin/apt remove -y php7.2 php7.2-cli php7.2-fpm php7.2-pgsql php7.2-sqlite3 php7.2-odbc php7.2-curl php7.2-xml php7.2-gd php7.2-imap
|
||||
|
||||
#remove php 7.3
|
||||
/usr/bin/apt remove -y php7.3 php7.3-cli php7.3-fpm php7.3-pgsql php7.3-sqlite3 php7.3-odbc php7.3-curl php7.3-imap php7.3-xml php7.3-gd
|
||||
/usr/bin/apt remove -y php7.3 php7.3-cli php7.3-fpm php7.3-pgsql php7.3-sqlite3 php7.3-odbc php7.3-curl php7.3-xml php7.3-gd php7.3-imap
|
||||
|
||||
#remove php 7.4
|
||||
/usr/bin/apt remove -y php7.4 php7.4-cli php7.4-fpm php7.4-pgsql php7.4-sqlite3 php7.4-odbc php7.4-curl php7.4-imap php7.4-xml php7.4-gd
|
||||
/usr/bin/apt remove -y php7.4 php7.4-cli php7.4-fpm php7.4-pgsql php7.4-sqlite3 php7.4-odbc php7.4-curl php7.4-xml php7.4-gd php7.4-imap
|
||||
|
||||
#remove php 8.1
|
||||
/usr/bin/apt remove -y php8.1 php8.1-cli php8.1-dev php8.1-fpm php8.1-pgsql php8.1-sqlite3 php8.1-odbc php8.1-curl php8.1-imap php8.1-xml php8.1-gd php8.1-mbstring php8.1-ldap
|
||||
/usr/bin/apt remove -y php8.1 php8.1-cli php8.1-dev php8.1-fpm php8.1-pgsql php8.1-sqlite3 php8.1-odbc php8.1-curl php8.1-xml php8.1-gd php8.1-mbstring php8.1-ldap php8.1-imap
|
||||
|
||||
#remove php 8.2
|
||||
/usr/bin/apt remove -y php8.2 php8.2-cli php8.2-dev php8.2-fpm php8.2-pgsql php8.2-sqlite3 php8.2-odbc php8.2-curl php8.2-imap php8.2-xml php8.2-gd php8.2-mbstring php8.2-ldap
|
||||
/usr/bin/apt remove -y php8.2 php8.2-cli php8.2-dev php8.2-fpm php8.2-pgsql php8.2-sqlite3 php8.2-odbc php8.2-curl php8.2-xml php8.2-gd php8.2-mbstring php8.2-ldap php8.2-imap
|
||||
|
||||
#remove php 8.3
|
||||
/usr/bin/apt remove -y php8.3 php8.3-cli php8.3-dev php8.3-fpm php8.3-pgsql php8.3-sqlite3 php8.3-odbc php8.3-curl php8.3-imap php8.3-xml php8.3-gd php8.3-mbstring php8.3-ldap
|
||||
/usr/bin/apt remove -y php8.3 php8.3-cli php8.3-dev php8.3-fpm php8.3-pgsql php8.3-sqlite3 php8.3-odbc php8.3-curl php8.3-xml php8.3-gd php8.3-mbstring php8.3-ldap php8.3-imap
|
||||
|
||||
#remove php 8.4
|
||||
/usr/bin/apt remove -y php8.4 php8.4-cli php8.4-dev php8.4-fpm php8.4-pgsql php8.4-sqlite3 php8.4-odbc php8.4-curl php8.4-imap php8.4-xml php8.4-gd php8.4-mbstring php8.4-ldap
|
||||
/usr/bin/apt remove -y php8.4 php8.4-cli php8.4-dev php8.4-fpm php8.4-pgsql php8.4-sqlite3 php8.4-odbc php8.4-curl php8.4-xml php8.4-gd php8.4-mbstring php8.4-ldap php8.4-imap
|
||||
|
||||
#install php update and set the unix socket
|
||||
if [ ."$php_version" = ."8.4" ]; then
|
||||
@@ -45,7 +45,8 @@ if [ ."$php_version" = ."8.4" ]; then
|
||||
/usr/bin/apt-get update
|
||||
|
||||
#install php 8.4
|
||||
apt-get install -y php8.4 php8.4-cli php8.4-dev php8.4-fpm php8.4-pgsql php8.4-sqlite3 php8.4-odbc php8.4-curl php8.4-imap php8.4-xml php8.4-gd php8.4-mbstring php8.4-ldap
|
||||
apt-get install -y php8.4 php8.4-cli php8.4-dev php8.4-fpm php8.4-pgsql php8.4-sqlite3 php8.4-odbc php8.4-curl php8.4-xml php8.4-gd php8.4-mbstring php8.4-ldap
|
||||
apt-get install -y php8.4-imap
|
||||
|
||||
#update the unix socket name
|
||||
/usr/bin/sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php8.2-fpm.sock;#g'
|
||||
@@ -61,7 +62,7 @@ if [ ."$php_version" = ."8.3" ]; then
|
||||
/usr/bin/apt-get update
|
||||
|
||||
#install php 8.2
|
||||
apt-get install -y php8.3 php8.3-cli php8.3-dev php8.3-fpm php8.3-pgsql php8.3-sqlite3 php8.3-odbc php8.3-curl php8.3-imap php8.3-xml php8.3-gd php8.3-mbstring php8.3-ldap
|
||||
apt-get install -y php8.3 php8.3-cli php8.3-dev php8.3-fpm php8.3-pgsql php8.3-sqlite3 php8.3-odbc php8.3-curl php8.3-xml php8.3-gd php8.3-mbstring php8.3-ldap php8.3-imap
|
||||
|
||||
#update the unix socket name
|
||||
/usr/bin/sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php8.2-fpm.sock;#g'
|
||||
@@ -77,7 +78,7 @@ if [ ."$php_version" = ."8.2" ]; then
|
||||
/usr/bin/apt-get update
|
||||
|
||||
#install php 8.2
|
||||
apt-get install -y php8.2 php8.2-cli php8.2-dev php8.2-fpm php8.2-pgsql php8.2-sqlite3 php8.2-odbc php8.2-curl php8.2-imap php8.2-xml php8.2-gd php8.2-mbstring php8.2-ldap
|
||||
apt-get install -y php8.2 php8.2-cli php8.2-dev php8.2-fpm php8.2-pgsql php8.2-sqlite3 php8.2-odbc php8.2-curl php8.2-xml php8.2-gd php8.2-mbstring php8.2-ldap php8.2-imap
|
||||
|
||||
#update the unix socket name
|
||||
/usr/bin/sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php8.2-fpm.sock;#g'
|
||||
@@ -93,7 +94,7 @@ if [ ."$php_version" = ."8.1" ]; then
|
||||
/usr/bin/apt-get update
|
||||
|
||||
#install php 8.1
|
||||
/usr/bin/apt-get install -y php8.1 php8.1-cli php8.1-dev php8.1-fpm php8.1-pgsql php8.1-sqlite3 php8.1-odbc php8.1-curl php8.1-imap php8.1-xml php8.1-gd php8.1-mbstring php8.1-ldap
|
||||
/usr/bin/apt-get install -y php8.1 php8.1-cli php8.1-dev php8.1-fpm php8.1-pgsql php8.1-sqlite3 php8.1-odbc php8.1-curl php8.1-xml php8.1-gd php8.1-mbstring php8.1-ldap php8.1-imap
|
||||
|
||||
#update the unix socket name
|
||||
/usr/bin/sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php8.1-fpm.sock;#g'
|
||||
@@ -107,7 +108,7 @@ if [ ."$php_version" = ."7.4" ]; then
|
||||
/usr/bin/apt update
|
||||
|
||||
#install php 7.4
|
||||
/usr/bin/apt-get install -y php7.4 php7.4-cli php7.4-dev php7.4-fpm php7.4-pgsql php7.4-sqlite3 php7.4-odbc php7.4-curl php7.4-imap php7.4-xml php7.4-gd php7.4-mbstring php7.4-ldap
|
||||
/usr/bin/apt-get install -y php7.4 php7.4-cli php7.4-dev php7.4-fpm php7.4-pgsql php7.4-sqlite3 php7.4-odbc php7.4-curl php7.4-xml php7.4-gd php7.4-mbstring php7.4-ldap php7.4-imap
|
||||
|
||||
#update the unix socket name
|
||||
/usr/bin/sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php7.4-fpm.sock;#g'
|
||||
|
||||
Reference in New Issue
Block a user