install.sh 599 B

1234567891011121314151617181920212223242526272829303132
  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/firewall.sh
  24. . bin/fail2ban.sh
  25. . bin/lemp.sh