forked from norman/fusionpbx-install.sh-github-mirror
- Added optional applications.sh scripts. - Added call_recordings.php script for wav - mp3 conversion. - Updated ubuntu\resources\fusionpbx\config.conf to add entry for setting the event socket password and a comment at the top to direct admins to where they can find more configuration options for this file. - Updated config.sh to add switch_token entry and some version changes to make the installer Ubuntu 24.04 compatible. - Added on the Optional applications. - Updated environment.sh to include setting the PATH just in case. - Updated finish.sh to include output of database username and password to save a few steps when setting up. - Added freeswitch-acl.conf from the Debian side as more security is important. - Updated jail.local to include freeswitch-acl as well as turning several items on by default (security should always be the default). - Updated install.sh to include some missing dependencies (nginx and build-essential) - Updated php.sh, and nginx.sh to include 8.1, 8.2 and 8.3 - Swapped plocate for mlocate in dependency install in ubuntu\resources\switch\source-release.sh - uncommented ./bootstrap.sh -j line for git compatibility - removed duplicate $switch_version from sed commands, added sed command to disable mod_av. - Added environment.sh include to switch.sh - Added monit files for freeswitch perms etc.
66 lines
1.2 KiB
Bash
Executable File
66 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
#move to script directory so all relative paths work
|
|
cd "$(dirname "$0")"
|
|
|
|
#includes
|
|
. ./resources/config.sh
|
|
. ./resources/colors.sh
|
|
. ./resources/environment.sh
|
|
|
|
# removes the cd img from the /etc/apt/sources.list file (not needed after base install)
|
|
sed -i '/cdrom:/d' /etc/apt/sources.list
|
|
|
|
#Update to latest packages
|
|
verbose "Update installed packages"
|
|
apt-get update && apt-get upgrade -y
|
|
|
|
#Add dependencies
|
|
apt-get install -y wget
|
|
apt-get install -y lsb-release
|
|
apt-get install -y systemd
|
|
apt-get install -y systemd-sysv
|
|
apt-get install -y ca-certificates
|
|
apt-get install -y dialog
|
|
apt-get install -y nano
|
|
apt-get install -y nginx
|
|
apt-get install -y build-essential
|
|
|
|
#SNMP
|
|
apt-get install -y snmpd
|
|
echo "rocommunity public" > /etc/snmp/snmpd.conf
|
|
service snmpd restart
|
|
|
|
#IPTables
|
|
resources/iptables.sh
|
|
|
|
#sngrep
|
|
resources/sngrep.sh
|
|
|
|
#FusionPBX
|
|
resources/fusionpbx.sh
|
|
|
|
#PHP
|
|
resources/php.sh
|
|
|
|
#NGINX web server
|
|
resources/nginx.sh
|
|
|
|
#Postgres
|
|
resources/postgresql.sh
|
|
|
|
#Optional Applications
|
|
resources/applications.sh
|
|
|
|
#FreeSWITCH
|
|
resources/switch.sh
|
|
|
|
#Fail2ban
|
|
resources/fail2ban.sh
|
|
|
|
#set the ip address
|
|
server_address=$(hostname -I)
|
|
|
|
#add the database schema, user and groups
|
|
resources/finish.sh
|