fusionpbx-install.sh/centos/install.sh

57 lines
982 B
Bash
Raw Normal View History

2017-02-23 17:53:37 +01:00
#!/bin/sh
2017-04-23 11:29:01 +02:00
# CentOS 7 install
2017-02-23 17:53:37 +01:00
#move to script directory so all relative paths work
cd "$(dirname "$0")"
2017-04-23 10:21:24 +02:00
#includes
. ./resources/config.sh
2017-02-23 17:53:37 +01:00
. ./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
2019-02-13 23:46:34 +01:00
# Add additional repository
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
2017-02-23 17:53:37 +01:00
# Disable SELinux
2017-04-23 11:29:01 +02:00
resources/selinux.sh
2017-02-23 17:53:37 +01:00
#FusionPBX
resources/fusionpbx.sh
#Postgres
2017-12-30 18:48:02 +01:00
resources/postgresql.sh
2017-02-23 17:53:37 +01:00
#NGINX web server
resources/sslcert.sh
resources/nginx.sh
#PHP/PHP-FPM
resources/php.sh
2017-04-23 11:04:12 +02:00
#Firewalld
2017-02-23 17:53:37 +01:00
resources/firewalld.sh
2017-04-23 11:04:12 +02:00
#FreeSWITCH
resources/switch.sh
2017-02-23 17:53:37 +01:00
#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