#!/bin/bash
echo "3s后开始安装";

sleep 3s
wget --no-check-certificate https://file.hassy.co/xray/hassy-xray.json
mv hassy-xray.json /etc/hassy-xray.json

wget --no-check-certificate https://file.hassy.co/xray/hassy-xray.service
mv hassy-xray.service /etc/systemd/system/hassy-xray.service

wget --no-check-certificate https://file.hassy.co/xray/xray
chmod +x xray
mv xray /usr/local/bin/xray
wget --no-check-certificate https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
mv geoip.dat /usr/local/bin/geoip.dat
wget --no-check-certificate https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat
mv geosite.dat /usr/local/bin/geosite.dat

systemctl enable --now hassy-xray