Update install.sh

This commit is contained in:
snail007
2017-09-12 11:17:09 +08:00
committed by GitHub
parent 5c0c51d23d
commit e601526980

View File

@ -1,4 +1,9 @@
#!/bin/bash
set -e
if [ -e /tmp/proxy ]; then
rm -rf /tmp/proxy
fi
cd /tmp/proxy
# install monexec
tar zxvf monexec_0.1.1_linux_amd64.tar.gz
cd monexec_0.1.1_linux_amd64
@ -20,16 +25,6 @@ if [ ! -e /etc/proxy/proxy.crt ]; then
cd /etc/proxy/
proxy keygen >/dev/null 2>&1
fi
if [ ! -e /etc/proxy/blocked ]; then
cd /etc/proxy/
cp blocked /etc/proxy/
fi
if [ ! -e /etc/proxy/direct ]; then
cd /etc/proxy/
cp direct /etc/proxy/
fi
rm -rf /tmp/proxy
echo "install done"
proxyd