update
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
F="proxy-linux-amd64.tar.gz"
|
||||
manual="https://snail.gitee.io/proxy/manual/"
|
||||
manual="https://snail007.host900.com/goproxy/manual/"
|
||||
set -e
|
||||
WORKDIR="/tmp/proxy"
|
||||
rm -rf $WORKDIR
|
||||
@@ -8,7 +8,7 @@ mkdir $WORKDIR
|
||||
cp $F $WORKDIR
|
||||
cd /tmp/proxy
|
||||
echo -e ">>> installing ... \n"
|
||||
tar zxvf $F >/dev/null
|
||||
tar zxvf $F >/dev/null 2>&1
|
||||
set +e
|
||||
killall -9 proxy >/dev/null 2>&1
|
||||
set -e
|
||||
|
||||
Regular → Executable
+2
-2
@@ -8,13 +8,13 @@ mkdir /tmp/proxy
|
||||
cd /tmp/proxy
|
||||
|
||||
echo -e "\n>>> downloading ... $F\n"
|
||||
manual="https://snail.gitee.io/proxy/manual/"
|
||||
manual="https://snail007.host900.com/goproxy/manual/zh/"
|
||||
LAST_VERSION=$(curl --silent "https://mirrors.host900.com/https://api.github.com/repos/snail007/goproxy/releases/latest" | grep -Po '"tag_name":"\K.*?(?=")')
|
||||
wget -t 1 "https://mirrors.host900.com/https://github.com/snail007/goproxy/releases/download/${LAST_VERSION}/$F"
|
||||
|
||||
echo -e ">>> installing ... \n"
|
||||
# #install proxy
|
||||
tar zxvf $F >/dev/null
|
||||
tar zxvf $F >/dev/null 2>&1
|
||||
set +e
|
||||
killall -9 proxy >/dev/null 2>&1
|
||||
set -e
|
||||
|
||||
@@ -7,13 +7,13 @@ fi
|
||||
mkdir /tmp/proxy
|
||||
cd /tmp/proxy
|
||||
echo -e "\n>>> downloading ... $F\n"
|
||||
manual="https://snail.gitee.io/proxy/manual/"
|
||||
manual="https://snail007.host900.com/goproxy/manual/zh/"
|
||||
LAST_VERSION=$(curl --silent "https://mirrors.host900.com/https://api.github.com/repos/snail007/goproxy/releases/latest" | grep -Po '"tag_name":"\K.*?(?=")')
|
||||
wget -t 1 "https://mirrors.host900.com/https://github.com/snail007/goproxy/releases/download/${LAST_VERSION}/$F"
|
||||
|
||||
echo -e ">>> installing ... \n"
|
||||
# #install proxy
|
||||
tar zxvf $F >/dev/null
|
||||
tar zxvf $F >/dev/null 2>&1
|
||||
set +e
|
||||
killall -9 proxy >/dev/null 2>&1
|
||||
set -e
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
F="proxy-linux-amd64_commercial.tar.gz"
|
||||
manual="https://snail.gitee.io/proxy/manual/"
|
||||
manual="https://snail007.host900.com/goproxy/manual/"
|
||||
set -e
|
||||
WORKDIR="/tmp/proxy"
|
||||
rm -rf $WORKDIR
|
||||
@@ -8,7 +8,7 @@ mkdir $WORKDIR
|
||||
cp $F $WORKDIR
|
||||
cd /tmp/proxy
|
||||
echo -e ">>> installing ... \n"
|
||||
tar zxvf $F >/dev/null
|
||||
tar zxvf $F >/dev/null 2>&1
|
||||
set +e
|
||||
killall -9 proxy >/dev/null 2>&1
|
||||
set -e
|
||||
|
||||
Reference in New Issue
Block a user