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.

61 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. apt-get install -y net-tools
  22. #SNMP
  23. apt-get install -y snmpd
  24. echo "rocommunity public" > /etc/snmp/snmpd.conf
  25. service snmpd restart
  26. #IPTables
  27. resources/iptables.sh
  28. #sngrep
  29. resources/sngrep.sh
  30. #FusionPBX
  31. resources/fusionpbx.sh
  32. #PHP
  33. resources/php.sh
  34. #NGINX web server
  35. resources/nginx.sh
  36. #FreeSWITCH
  37. resources/switch.sh
  38. #Fail2ban
  39. resources/fail2ban.sh
  40. #Postgres
  41. resources/postgresql.sh
  42. #set the ip address
  43. server_address=$(hostname -I)
  44. #add the database schema, user and groups
  45. resources/finish.sh