Update install.sh
This commit is contained in:
17
install.sh
17
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
|
||||
|
||||
Reference in New Issue
Block a user