forked from syapik96/aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd-host.sh
27 lines (25 loc) · 843 Bytes
/
add-host.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
### 🔰 COPYRIGHT © 2024 AlkhanetVPN, Inc 🔰 ###
red='\e[1;31m'
green='\e[1;32m'
yellow='\e[1;33m'
blue='\e[1;34m'
NC='\e[0m'
clear
cd
rm /root/domain
rm /etc/v2ray/domain
rm /var/lib/premium-script/ipvps.conf
echo -e "\e[1;105m==========================================================\e[0m"
echo -e ""
echo -e "${red}Ensure the Domain is already routed to cloudflare (proxy off)${NC}"
echo -e "${green}Enter your domain , if you do not currently have a domain"
echo -e "or not route with cloudeflare yet click enter to add again later${NC}"
echo -e ""
echo -e "\e[1;105m==========================================================\e[0m"
echo -e "${blue}"
read -rp " Domain / Host : " -e host
echo "IP=$host" > /var/lib/premium-script/ipvps.conf
echo "$host" > /etc/v2ray/domain
echo "$host" > /root/domain
echo -e "${NC}"