diff --git a/setup.sh b/setup.sh index 8fc1de0..54b2a80 100644 --- a/setup.sh +++ b/setup.sh @@ -61,6 +61,7 @@ fi mkdir /var/lib/akbarstorevpn; echo "IP=" >> /var/lib/akbarstorevpn/ipvps.conf wget https://${akbarvpn}/cf.sh && chmod +x cf.sh && ./cf.sh +sleep 1 #install v2ray wget https://${akbarvpnnnnnn}/ins-xray.sh && chmod +x ins-xray.sh && screen -S xray ./ins-xray.sh #install ssh ovpn @@ -81,6 +82,7 @@ wget https://${akbarvpnnnnnnnnnn}/ohp.sh && chmod +x ohp.sh && ./ohp.sh #Setting Backup wget https://${akbarvpnnnnnnnn}/set-br.sh && chmod +x set-br.sh && ./set-br.sh +restart rm -f /root/cf.sh rm -f /root/ssh-vpn.sh diff --git a/ssh/cf.sh b/ssh/cf.sh index a4f8ef9..2455532 100644 --- a/ssh/cf.sh +++ b/ssh/cf.sh @@ -87,7 +87,7 @@ RESULT=$(curl -sLX PUT "https://api.cloudflare.com/client/v4/zones/${ZONE}/dns_r -H "Content-Type: application/json" \ --data '{"type":"A","name":"'${WILD_DOMAIN}'","content":"'${IP}'","ttl":120,"proxied":false}') echo "Host : $SUB_DOMAIN" -echo $SUB_DOMAIN > /etc/xray/domain -echo $SUB_DOMAIN > /root/domain -echo "IP=$SUB_DOMAIN" >>/var/lib/akbarstorevpn/ipvps.conf +echo $SUB_DOMAIN >> /etc/xray/domain +echo $SUB_DOMAIN >> /root/domain +echo "IP=$SUB_DOMAIN" >> /var/lib/akbarstorevpn/ipvps.conf sleep 3