install.sh 901 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #! /bin/sh
  2. echo -e '
  3. _ _ _ _ ___ __ __ ___
  4. /_\ | |_ __(_)_ _ ___ | | | __| \/ | _ \
  5. / _ \| | ._ \ | . \/ -_) | |__| _|| |\/| | _/
  6. /_/ \_\_| .__/_|_||_\___| |____|___|_| |_|_|
  7. |_|
  8. '
  9. echo -e "\033[35;1mThis script has been tested only on Alpine Linux \033[0m"
  10. . bin/checkroot.sh
  11. echo -n "Should we start? [y|n] "
  12. read yn
  13. yn=${yn:-y}
  14. if [ "$yn" != "y" ] && [ "$yn" != "Y" ]; then
  15. echo -e "aborting script!"
  16. exit
  17. fi
  18. # get the current position
  19. _cwd="$(pwd)"
  20. . bin/upgrade.sh
  21. # . bin/bash.sh
  22. . bin/misc.sh
  23. . bin/dotfiles.sh
  24. . bin/user.sh
  25. . bin/ssh.sh
  26. . bin/ufw.sh
  27. . bin/fail2ban.sh
  28. . bin/knockd.sh
  29. . bin/email.sh
  30. . bin/lemp.sh
  31. . bin/mysqlbackup.sh
  32. while [ "$vh" != "y" ] && [ "$vh" != "n" ]
  33. do
  34. echo -n "Should we install a vhost? [y|n] "
  35. read vh
  36. done
  37. if [ "$vh" = "y" ]; then
  38. . bin/vhost.sh
  39. fi
  40. . bin/zabbix.sh
  41. . bin/urbackup.sh