From 01df49e080561c227767efab8390262a0b01df43 Mon Sep 17 00:00:00 2001 From: snail007 Date: Tue, 7 Jun 2022 18:36:44 +0800 Subject: [PATCH] update --- install.sh | 4 ++-- install_auto.sh | 4 ++-- install_auto_commercial.sh | 4 ++-- install_commercial.sh | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) mode change 100644 => 100755 install_auto.sh diff --git a/install.sh b/install.sh index 8e00402..158e13e 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/install_auto.sh b/install_auto.sh old mode 100644 new mode 100755 index d902b2f..6623760 --- a/install_auto.sh +++ b/install_auto.sh @@ -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 diff --git a/install_auto_commercial.sh b/install_auto_commercial.sh index 2efdf78..eccc04d 100755 --- a/install_auto_commercial.sh +++ b/install_auto_commercial.sh @@ -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 diff --git a/install_commercial.sh b/install_commercial.sh index 7c26f4e..1888bd4 100755 --- a/install_commercial.sh +++ b/install_commercial.sh @@ -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