add-host.sh 619 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. echo "Tukar Domain?"
  3. select yn in "Yes" "No"; do
  4. case $yn in
  5. Yes) make install ; break ;;
  6. No) exit ;;
  7. esac
  8. done
  9. clear
  10. echo -e "Masukkan Domain"
  11. read -p "Hostname / Domain: " host
  12. rm -f /var/lib/crot-script/ipvps.conf
  13. rm -f /var/lib/premium-script/ipvps.conf
  14. rm -f /etc/v2ray/domain
  15. clear
  16. mkdir /etc/v2ray
  17. mkdir /var/lib/premium-script;
  18. mkdir /var/lib/crot-script;
  19. clear
  20. echo -e "Masukkan Domain Sekali Lagi"
  21. read -p "Hostname / Domain: " host
  22. echo "IP=$host" >> /var/lib/crot-script/ipvps.conf
  23. echo "IP=$host" >> /var/lib/premium-script/ipvps.conf
  24. echo "$host" >> /etc/v2ray/domain