fusionpbx-install.sh/debian/install.sh

48 lines
1005 B
Bash
Raw Normal View History

2016-04-29 21:24:22 +02:00
#!/bin/sh
#Update Debian
echo "Update Debian"
apt-get upgrade && apt-get update -y --force-yes
#IPTables
resources/./iptables.sh
#FusionPBX
resources/./fusionpbx.sh
#NGINX web server
resources/./nginx.sh
#Fail2ban
resources/./fail2ban.sh
#FreeSWITCH
resources/switch/./package-release.sh
#resources/switch/./package-master.sh
#resources/switch/./source-release.sh
#Postgres
resources/./postgres.sh
#set the ip address
server_address=$(hostname -I)
#restart services
2016-05-17 04:18:10 +02:00
/bin/systemctl daemon-reload
/bin/systemctl try-restart freeswitch
2016-04-29 21:24:22 +02:00
/bin/systemctl daemon-reload
/bin/systemctl restart nginx
/bin/systemctl restart fail2ban
#/usr/sbin/service nginx restart
#/usr/sbin/service fail2ban restart
#Show database password
echo "Complete the install by by going to the IP address of this server ";
echo "in your web browser or with a domain name for this server.";
2016-04-29 21:24:22 +02:00
echo " https://$server_address"
echo ""
echo ""
#wait for the config.php to exist and then restart the service
2016-05-10 19:15:14 +02:00
#resources/./finish.sh