fusionpbx-install.sh/centos/install.sh

54 lines
884 B
Bash
Executable File

#!/bin/sh
# CentOS 7 install
#move to script directory so all relative paths work
cd "$(dirname "$0")"
#includes
. ./resources/config.sh
. ./resources/colors.sh
# Update CentOS
verbose "Updating CentOS"
yum -y update && yum -y upgrade
# Installing basics packages
yum -y install ntp htop epel-release vim openssl
# Disable SELinux
resources/selinux.sh
#FusionPBX
resources/fusionpbx.sh
#Postgres
resources/postgres.sh
#NGINX web server
resources/sslcert.sh
resources/nginx.sh
#PHP/PHP-FPM
resources/php.sh
#Firewalld
resources/firewalld.sh
#FreeSWITCH
resources/switch.sh
#Fail2ban
resources/fail2ban.sh
#restart services
verbose "Restarting packages for final configuration"
systemctl daemon-reload
systemctl restart freeswitch
systemctl restart php-fpm
systemctl restart nginx
systemctl restart fail2ban
#add the database schema, user and groups
resources/finish.sh