intall.sh 841 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. if [ "${EUID}" -ne 0 ]; then
  3. echo "You need to run this script as root"
  4. exit 1
  5. fi
  6. if [ "$(systemd-detect-virt)" == "openvz" ]; then
  7. echo "OpenVZ is not supported"
  8. exit 1
  9. fi
  10. red='\e[1;31m'
  11. green='\e[0;32m'
  12. NC='\e[0m'
  13. MYIP=$(wget -qO- ifconfig.me/ip);
  14. IZIN=$( curl https://www.ipang.me | grep $MYIP )
  15. if [ $MYIP = $IZIN ]; then
  16. echo -e "${green}Permission Accepted...${NC}"
  17. else
  18. echo -e "${red}Permission Denied!${NC}";
  19. echo "Please Contact Admin"
  20. echo "Telegram t.me/jessy009"
  21. #preparing to intstall ssh
  22. apt-get update
  23. apt-get upgrade -y
  24. update-grub
  25. rm -f setup-kadal.sh
  26. sysctl -w net.ipv6.conf.all.disable_ipv6=1
  27. sysctl -w net.ipv6.conf.default.disable_ipv6=1
  28. apt update
  29. wget https://raw.githubusercontent.com/janda-baper/janda-baper/main/setup-kadal.sh
  30. chmod +x setup-kadal.sh
  31. bash setup-kadal.sh
  32. rm -f setup-kadal.sh