install.sh 612 B

123456789101112131415161718192021222324252627282930313233
  1. #! /bin/sh
  2. echo -e '\033[35m
  3. _ _ _ _ ___ __ __ ___
  4. /_\ | |_ __(_)_ _ ___ | | | __| \/ | _ \
  5. / _ \| | '_ \ | ' \/ -_) | |__| _|| |\/| | _/
  6. /_/ \_\_| .__/_|_||_\___| |____|___|_| |_|_|
  7. |_|
  8. \033[0m'
  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" ]; then
  15. echo -e "aborting script!"
  16. exit
  17. fi
  18. # get the current position
  19. _cwd="$(pwd)"
  20. . bin/upgrade
  21. . bin/user.sh
  22. . bin/misc.sh
  23. . bin/ufw.sh
  24. . bin/fail2ban.sh
  25. . bin/knockd.sh
  26. # . bin/lemp.sh