Fork of FusionPBX but with LDAP kinda working
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.1 KiB

  1. #!/bin/sh
  2. #move to script directory so all relative paths work
  3. cd "$(dirname "$0")"
  4. #includes
  5. . ./resources/config.sh
  6. . ./resources/colors.sh
  7. . ./resources/environment.sh
  8. # removes the cd img from the /etc/apt/sources.list file (not needed after base install)
  9. sed -i '/cdrom:/d' /etc/apt/sources.list
  10. #Update to latest packages
  11. verbose "Update installed packages"
  12. apt-get update && apt-get upgrade -y
  13. #Add dependencies
  14. apt-get install -y wget
  15. apt-get install -y lsb-release
  16. apt-get install -y systemd
  17. apt-get install -y systemd-sysv
  18. apt-get install -y ca-certificates
  19. apt-get install -y dialog
  20. apt-get install -y nano
  21. #SNMP
  22. apt-get install -y snmpd
  23. echo "rocommunity public" > /etc/snmp/snmpd.conf
  24. service snmpd restart
  25. #IPTables
  26. resources/iptables.sh
  27. #sngrep
  28. resources/sngrep.sh
  29. #FusionPBX
  30. resources/fusionpbx.sh
  31. #PHP
  32. resources/php.sh
  33. #NGINX web server
  34. resources/nginx.sh
  35. #Postgres
  36. resources/postgresql.sh
  37. #FreeSWITCH
  38. resources/switch.sh
  39. #Fail2ban
  40. resources/fail2ban.sh
  41. #set the ip address
  42. server_address=$(hostname -I)
  43. #add the database schema, user and groups
  44. resources/finish.sh