diff --git a/setup.sh b/setup.sh index 710753d..ab515b9 100644 --- a/setup.sh +++ b/setup.sh @@ -59,7 +59,7 @@ echo "Script Already Installed" exit 0 fi mkdir /var/lib/akbarstorevpn; -#echo "IP=" >> /var/lib/akbarstorevpn/ipvps.conf +echo "IP=" >> /var/lib/akbarstorevpn/ipvps.conf wget https://${akbarvpn}/cf.sh && chmod +x cf.sh && ./cf.sh #install v2ray wget https://${akbarvpnnnnnn}/ins-xray.sh && chmod +x ins-xray.sh && screen -S xray ./ins-xray.sh diff --git a/xray/ins-xray.sh b/xray/ins-xray.sh index 5c71a4a..6a5316c 100644 --- a/xray/ins-xray.sh +++ b/xray/ins-xray.sh @@ -56,8 +56,7 @@ chmod +x /usr/local/bin/xray mkdir -p /var/log/xray/ cd /root/ -source /var/lib/akbarstorevpn/ipvps.conf -domain=$IP +domain=$(cat /etc/xray/domain) wget https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh bash acme.sh --install rm acme.sh @@ -504,4 +503,4 @@ systemctl enable trojan-go systemctl restart trojan-go cd -cp /root/domain /etc/xray \ No newline at end of file +cp /root/domain /etc/xray