Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
snail007 committed Mar 20, 2020
1 parent 0ec2284 commit 05d9d2e
Show file tree
Hide file tree
Showing 6 changed files with 490 additions and 466 deletions.
232 changes: 116 additions & 116 deletions README.md

Large diffs are not rendered by default.

224 changes: 112 additions & 112 deletions README_ZH.md

Large diffs are not rendered by default.

232 changes: 116 additions & 116 deletions docs/manual/manual.md

Large diffs are not rendered by default.

224 changes: 112 additions & 112 deletions docs/manual/zh/manual.md

Large diffs are not rendered by default.

22 changes: 17 additions & 5 deletions install_auto.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,29 +1,41 @@
#!/bin/bash
F="proxy-linux-amd64.tar.gz"

V="v8.9"
set -e
if [ -e /tmp/proxy ]; then
rm -rf /tmp/proxy
fi
mkdir /tmp/proxy
cd /tmp/proxy
echo -e "downloading ... $F-$V\n"
CN=$(wget -O - myip.ipip.net | grep "中国" |grep -v grep)
if [ -z "$CN" ];then
LAST_VERSION=$(curl --silent "https://api.github.com/repos/snail007/goproxy/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
wget "https://github.com/snail007/goproxy/releases/download/${LAST_VERSION}/$F"

else
wget "http://mirrors.host900.com/snail007/goproxy/$V/$F"
fi
echo -e "installing ... \n"
# #install proxy
tar zxvf $F
killall -9 proxy
cp -f proxy /usr/bin/
chmod +x /usr/bin/proxy
if [ ! -e /etc/proxy ]; then
mkdir /etc/proxy
cp blocked /etc/proxy
cp direct /etc/proxy
fi

if [ ! -e /etc/proxy/proxy.crt ]; then
cd /etc/proxy/
proxy keygen -C proxy >/dev/null 2>&1
fi
rm -rf /tmp/proxy
echo "install done"
proxy help
echo -e "\n#######################\n"
proxy --version
echo -e ">>> install done, thanks for using snail007/goproxy\n"
echo -e ">>> install path /usr/bin/proxy\n"
echo -e ">>> configuration path /etc/proxy\n\n"
echo -e ">>> uninstall just exec : rm /usr/bin/proxy && rm /etc/proxy\n\n"
echo -e ">>> How to using? Please visit : https://snail007.github.io/goproxy/manual/zh/\n"
echo -e "#######################\n"
22 changes: 17 additions & 5 deletions install_auto_commercial.sh
Original file line number Diff line number Diff line change
@@ -1,29 +1,41 @@
#!/bin/bash
F="proxy-linux-amd64_commercial.tar.gz"

V="v8.9"
set -e
if [ -e /tmp/proxy ]; then
rm -rf /tmp/proxy
fi
mkdir /tmp/proxy
cd /tmp/proxy
echo -e "downloading ... $F-$V\n"
CN=$(wget -O - myip.ipip.net | grep "中国" |grep -v grep)
if [ -z "$CN" ];then
LAST_VERSION=$(curl --silent "https://api.github.com/repos/snail007/goproxy/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
wget "https://github.com/snail007/goproxy/releases/download/${LAST_VERSION}/$F"

else
wget "http://mirrors.host900.com/snail007/goproxy/$V/$F"
fi
echo -e "installing ... \n"
# #install proxy
tar zxvf $F
killall -9 proxy
cp -f proxy /usr/bin/
chmod +x /usr/bin/proxy
if [ ! -e /etc/proxy ]; then
mkdir /etc/proxy
cp blocked /etc/proxy
cp direct /etc/proxy
fi

if [ ! -e /etc/proxy/proxy.crt ]; then
cd /etc/proxy/
proxy keygen -C proxy >/dev/null 2>&1
fi
rm -rf /tmp/proxy
echo "install done"
proxy help
echo -e "\n#######################\n"
proxy --version
echo -e ">>> install done, thanks for using snail007/goproxy\n"
echo -e ">>> install path /usr/bin/proxy\n"
echo -e ">>> configuration path /etc/proxy\n\n"
echo -e ">>> uninstall just exec : rm /usr/bin/proxy && rm /etc/proxy\n\n"
echo -e ">>> How to using? Please visit : https://snail007.github.io/goproxy/manual/zh/\n"
echo -e "#######################\n"

0 comments on commit 05d9d2e

Please sign in to comment.