forked from norman/fusionpbx-install.sh-github-mirror
Add a shell install script.
This commit is contained in:
43
debian/install.sh
vendored
Normal file
43
debian/install.sh
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
#!/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
|
||||
/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 going to:"
|
||||
echo " https://$server_address"
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user