Skip to content

Commit

Permalink
Update ehco.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Young authored Jun 30, 2021
1 parent 0c78e87 commit 15220d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ehco.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,15 @@ forward_config(){
JSON=${JSON/ip/$ip};
temp=`jq --argjson groupInfo $JSON '.relay_configs += [$groupInfo]' ehco.json`
echo $temp > ehco.json
wget https://cdn.jsdelivr.net/gh/missuo/Ehcoo/ehco-landing.service -O ehco.service
mv ehco.service /usr/lib/systemd/system
if [ ! -d "/usr/lib/systemd/system/ehco.service" ]; then
wget https://cdn.jsdelivr.net/gh/missuo/Ehcoo/ehco-landing.service -O ehco.service
mv ehco.service /usr/lib/systemd/system
fi
echo "正在本机启动Echo隧道"
systemctl daemon-reload
systemctl start ehco.service
systemctl enable ehco.service
systemctl restart ehco.service
echo ""
clear
echo "启动成功并已设定为开机自启。Ehco隧道的连接端口为 ${local_port}"
Expand Down

0 comments on commit 15220d3

Please sign in to comment.