From e60152698076182c1336681a401aa6b917378a19 Mon Sep 17 00:00:00 2001 From: snail007 Date: Tue, 12 Sep 2017 11:17:09 +0800 Subject: [PATCH] Update install.sh --- install.sh | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/install.sh b/install.sh index 4d55d20..e026c46 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,12 @@ #!/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 +cd monexec_0.1.1_linux_amd64 cp monexec /usr/bin/ chmod +x /usr/bin/monexec cd .. @@ -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