install.sh 961 B

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