fusionpbx-install.sh/freebsd/install.sh

50 lines
737 B
Bash
Raw Normal View History

#!/bin/sh
#move to script directory so all relative paths work
cd "$(dirname "$0")"
#includes
. ./resources/config.sh
. ./resources/colors.sh
. ./resources/environment.sh
#Update to latest packages
verbose "Update installed packages"
2017-03-25 19:00:10 +01:00
pkg upgrade
2017-04-02 07:09:30 +02:00
#Update the ports
2017-04-02 19:11:23 +02:00
if [ -d "/usr/ports" ]; then
2017-04-02 20:37:29 +02:00
portsnap fetch update
2017-04-02 19:11:23 +02:00
else
portsnap fetch extract
fi
2017-04-02 07:09:30 +02:00
2017-03-25 19:00:10 +01:00
#PF - Packet Filter
resources/pf.sh
#FusionPBX
resources/fusionpbx.sh
#NGINX web server
resources/nginx.sh
#PHP
resources/php.sh
#Fail2ban
2017-04-03 06:33:31 +02:00
resources/fail2ban.sh
#FreeSWITCH
resources/switch.sh
#Postgres
resources/postgres.sh
#restart services
2017-04-02 01:08:38 +02:00
service php-fpm restart
2017-03-25 19:45:18 +01:00
service nginx restart
service fail2ban restart
#add the database schema, user and groups
resources/finish.sh