Update shadowsocks-go version
This commit is contained in:
parent
2d35cc71a6
commit
1368001973
|
|
@ -1,13 +1,13 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
|
||||||
export PATH
|
export PATH
|
||||||
#===============================================================================================
|
#=================================================================#
|
||||||
# System Required: CentOS, Debian, Ubuntu
|
# System Required: CentOS, Debian, Ubuntu #
|
||||||
# Description: One click Install Shadowsocks-go server
|
# Description: One click Install Shadowsocks-go server #
|
||||||
# Author: Teddysun <i@teddysun.com>
|
# Author: Teddysun <i@teddysun.com> #
|
||||||
# Thanks: @cyfdecyf <https://twitter.com/cyfdecyf>
|
# Thanks: @cyfdecyf <https://twitter.com/cyfdecyf> #
|
||||||
# Intro: https://teddysun.com/392.html
|
# Intro: https://teddysun.com/392.html #
|
||||||
#===============================================================================================
|
#==================================================================
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo ""
|
echo ""
|
||||||
|
|
@ -147,31 +147,31 @@ function pre_install(){
|
||||||
function download_files(){
|
function download_files(){
|
||||||
cd $cur_dir
|
cd $cur_dir
|
||||||
if is_64bit; then
|
if is_64bit; then
|
||||||
if ! wget -c http://lamp.teddysun.com/shadowsocks/shadowsocks-server-linux64-1.1.4.gz;then
|
if ! wget -c http://lamp.teddysun.com/shadowsocks/shadowsocks-server-linux64-1.1.5.gz;then
|
||||||
echo "Failed to download shadowsocks-server-linux64-1.1.4.gz"
|
echo "Failed to download shadowsocks-server-linux64-1.1.5.gz"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
gzip -d shadowsocks-server-linux64-1.1.4.gz
|
gzip -d shadowsocks-server-linux64-1.1.5.gz
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
echo "Decompress shadowsocks-server-linux64-1.1.4.gz success."
|
echo "Decompress shadowsocks-server-linux64-1.1.5.gz success."
|
||||||
else
|
else
|
||||||
echo "Decompress shadowsocks-server-linux64-1.1.4.gz failed! Please check gzip command."
|
echo "Decompress shadowsocks-server-linux64-1.1.5.gz failed! Please check gzip command."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
mv -f shadowsocks-server-linux64-1.1.4 /usr/bin/shadowsocks-server
|
mv -f shadowsocks-server-linux64-1.1.5 /usr/bin/shadowsocks-server
|
||||||
else
|
else
|
||||||
if ! wget -c http://lamp.teddysun.com/shadowsocks/shadowsocks-server-linux32-1.1.4.gz;then
|
if ! wget -c http://lamp.teddysun.com/shadowsocks/shadowsocks-server-linux32-1.1.5.gz;then
|
||||||
echo "Failed to download shadowsocks-server-linux32-1.1.4.gz"
|
echo "Failed to download shadowsocks-server-linux32-1.1.5.gz"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
gzip -d shadowsocks-server-linux32-1.1.4.gz
|
gzip -d shadowsocks-server-linux32-1.1.5.gz
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
echo "Decompress shadowsocks-server-linux32-1.1.4.gz success."
|
echo "Decompress shadowsocks-server-linux32-1.1.5.gz success."
|
||||||
else
|
else
|
||||||
echo "Decompress shadowsocks-server-linux32-1.1.4.gz failed! Please check gzip command."
|
echo "Decompress shadowsocks-server-linux32-1.1.5.gz failed! Please check gzip command."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
mv -f shadowsocks-server-linux32-1.1.4 /usr/bin/shadowsocks-server
|
mv -f shadowsocks-server-linux32-1.1.5 /usr/bin/shadowsocks-server
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Download start script
|
# Download start script
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user