update shadowsocks-libev to version 2.5.1
This commit is contained in:
parent
92faf35707
commit
aa595da5ea
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/bash
|
#!/usr/bin/env 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: Debian or Ubuntu (32bit/64bit) #
|
# System Required: Debian or Ubuntu #
|
||||||
# Description: Install Shadowsocks-libev server for Debian/Ubuntu #
|
# Description: Install Shadowsocks-libev server for Debian/Ubuntu #
|
||||||
# Author: Teddysun <i@teddysun.com> #
|
# Author: Teddysun <i@teddysun.com> #
|
||||||
# Thanks: @madeye <https://github.com/madeye> #
|
# Thanks: @madeye <https://github.com/madeye> #
|
||||||
|
|
@ -21,10 +21,10 @@ echo
|
||||||
|
|
||||||
#Current folder
|
#Current folder
|
||||||
cur_dir=`pwd`
|
cur_dir=`pwd`
|
||||||
shadowsocks_libev_ver="shadowsocks-libev-2.5.0"
|
shadowsocks_libev_ver="shadowsocks-libev-2.5.1"
|
||||||
|
|
||||||
# Make sure only root can run our script
|
# Make sure only root can run our script
|
||||||
function rootness(){
|
rootness(){
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
echo "Error:This script must be run as root!" 1>&2
|
echo "Error:This script must be run as root!" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -32,15 +32,22 @@ fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Disable selinux
|
# Disable selinux
|
||||||
function disable_selinux(){
|
disable_selinux(){
|
||||||
if [ -s /etc/selinux/config ] && grep 'SELINUX=enforcing' /etc/selinux/config; then
|
if [ -s /etc/selinux/config ] && grep 'SELINUX=enforcing' /etc/selinux/config; then
|
||||||
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
|
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
|
||||||
setenforce 0
|
setenforce 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_ip(){
|
||||||
|
local IP=$( ip addr | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | egrep -v "^192\.168|^172\.1[6-9]\.|^172\.2[0-9]\.|^172\.3[0-2]\.|^10\.|^127\.|^255\.|^0\." | head -n 1 )
|
||||||
|
[ -z ${IP} ] && IP=$( wget -qO- -t1 -T2 ipv4.icanhazip.com )
|
||||||
|
[ -z ${IP} ] && IP=$( wget -qO- -t1 -T2 ipinfo.io/ip )
|
||||||
|
[ ! -z ${IP} ] && echo ${IP} || echo
|
||||||
|
}
|
||||||
|
|
||||||
# Pre-installation settings
|
# Pre-installation settings
|
||||||
function pre_install(){
|
pre_install(){
|
||||||
#Set shadowsocks-libev config password
|
#Set shadowsocks-libev config password
|
||||||
echo "Please input password for shadowsocks-libev:"
|
echo "Please input password for shadowsocks-libev:"
|
||||||
read -p "(Default password: teddysun.com):" shadowsockspwd
|
read -p "(Default password: teddysun.com):" shadowsockspwd
|
||||||
|
|
@ -90,25 +97,21 @@ function pre_install(){
|
||||||
apt-get -y --no-install-recommends install wget unzip curl build-essential autoconf libtool openssl libssl-dev zlib1g-dev xmlto asciidoc
|
apt-get -y --no-install-recommends install wget unzip curl build-essential autoconf libtool openssl libssl-dev zlib1g-dev xmlto asciidoc
|
||||||
# Get IP address
|
# Get IP address
|
||||||
echo "Getting Public IP address, Please wait a moment..."
|
echo "Getting Public IP address, Please wait a moment..."
|
||||||
IP=$(curl -s -4 icanhazip.com)
|
echo -e "Your main public IP is\t\033[32m $(get_ip) \033[0m"
|
||||||
if [[ "$IP" = "" ]]; then
|
|
||||||
IP=$(curl -s -4 ipinfo.io/ip)
|
|
||||||
fi
|
|
||||||
echo -e "Your main public IP is\t\033[32m$IP\033[0m"
|
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
# Download latest shadowsocks-libev
|
# Download latest shadowsocks-libev
|
||||||
function download_files(){
|
download_files(){
|
||||||
if [ -f ${shadowsocks_libev_ver}.zip ];then
|
if [ -f ${shadowsocks_libev_ver}.zip ];then
|
||||||
echo "${shadowsocks_libev_ver}.zip [found]"
|
echo "${shadowsocks_libev_ver}.zip [found]"
|
||||||
else
|
else
|
||||||
if ! wget --no-check-certificate https://github.com/shadowsocks/shadowsocks-libev/archive/v2.5.0.zip -O ${shadowsocks_libev_ver}.zip; then
|
if ! wget --no-check-certificate https://github.com/shadowsocks/shadowsocks-libev/archive/v2.5.1.zip -O ${shadowsocks_libev_ver}.zip; then
|
||||||
echo "Failed to download ${shadowsocks_libev_ver}.zip"
|
echo "Failed to download ${shadowsocks_libev_ver}.zip"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
unzip ${shadowsocks_libev_ver}.zip
|
unzip -q ${shadowsocks_libev_ver}.zip
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
cd ${cur_dir}/${shadowsocks_libev_ver}/
|
cd ${cur_dir}/${shadowsocks_libev_ver}/
|
||||||
if ! wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev-debian; then
|
if ! wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev-debian; then
|
||||||
|
|
@ -123,7 +126,7 @@ function download_files(){
|
||||||
}
|
}
|
||||||
|
|
||||||
# Config shadowsocks
|
# Config shadowsocks
|
||||||
function config_shadowsocks(){
|
config_shadowsocks(){
|
||||||
if [ ! -d /etc/shadowsocks-libev ];then
|
if [ ! -d /etc/shadowsocks-libev ];then
|
||||||
mkdir /etc/shadowsocks-libev
|
mkdir /etc/shadowsocks-libev
|
||||||
fi
|
fi
|
||||||
|
|
@ -141,7 +144,7 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
function install_libev(){
|
install_libev(){
|
||||||
# Build and Install shadowsocks-libev
|
# Build and Install shadowsocks-libev
|
||||||
if [ -s /usr/local/bin/ss-server ];then
|
if [ -s /usr/local/bin/ss-server ];then
|
||||||
echo "shadowsocks-libev has been installed!"
|
echo "shadowsocks-libev has been installed!"
|
||||||
|
|
@ -176,7 +179,7 @@ function install_libev(){
|
||||||
clear
|
clear
|
||||||
echo
|
echo
|
||||||
echo "Congratulations, shadowsocks-libev install completed!"
|
echo "Congratulations, shadowsocks-libev install completed!"
|
||||||
echo -e "Your Server IP: \033[41;37m ${IP} \033[0m"
|
echo -e "Your Server IP: \033[41;37m $(get_ip) \033[0m"
|
||||||
echo -e "Your Server Port: \033[41;37m ${shadowsocksport} \033[0m"
|
echo -e "Your Server Port: \033[41;37m ${shadowsocksport} \033[0m"
|
||||||
echo -e "Your Password: \033[41;37m ${shadowsockspwd} \033[0m"
|
echo -e "Your Password: \033[41;37m ${shadowsockspwd} \033[0m"
|
||||||
echo -e "Your Local IP: \033[41;37m 127.0.0.1 \033[0m"
|
echo -e "Your Local IP: \033[41;37m 127.0.0.1 \033[0m"
|
||||||
|
|
@ -190,7 +193,7 @@ function install_libev(){
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install Shadowsocks-libev
|
# Install Shadowsocks-libev
|
||||||
function install_shadowsocks_libev(){
|
install_shadowsocks_libev(){
|
||||||
rootness
|
rootness
|
||||||
disable_selinux
|
disable_selinux
|
||||||
pre_install
|
pre_install
|
||||||
|
|
@ -200,7 +203,7 @@ function install_shadowsocks_libev(){
|
||||||
}
|
}
|
||||||
|
|
||||||
# Uninstall Shadowsocks-libev
|
# Uninstall Shadowsocks-libev
|
||||||
function uninstall_shadowsocks_libev(){
|
uninstall_shadowsocks_libev(){
|
||||||
printf "Are you sure uninstall Shadowsocks-libev? (y/n) "
|
printf "Are you sure uninstall Shadowsocks-libev? (y/n) "
|
||||||
printf "\n"
|
printf "\n"
|
||||||
read -p "(Default: n):" answer
|
read -p "(Default: n):" answer
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#! /bin/bash
|
#!/usr/bin/env 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: CentOS6.x (32bit/64bit) #
|
# System Required: CentOS6 or 7 #
|
||||||
# Description: Install Shadowsocks-libev server for CentOS 6 or 7 #
|
# Description: Install Shadowsocks-libev server for CentOS 6 or 7 #
|
||||||
# Author: Teddysun <i@teddysun.com> #
|
# Author: Teddysun <i@teddysun.com> #
|
||||||
# Thanks: @madeye <https://github.com/madeye> #
|
# Thanks: @madeye <https://github.com/madeye> #
|
||||||
|
|
@ -20,10 +20,10 @@ echo
|
||||||
|
|
||||||
#Current folder
|
#Current folder
|
||||||
cur_dir=`pwd`
|
cur_dir=`pwd`
|
||||||
shadowsocks_libev_ver="shadowsocks-libev-2.5.0"
|
shadowsocks_libev_ver="shadowsocks-libev-2.5.1"
|
||||||
|
|
||||||
# Make sure only root can run our script
|
# Make sure only root can run our script
|
||||||
function rootness(){
|
rootness(){
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
echo "Error:This script must be run as root!" 1>&2
|
echo "Error:This script must be run as root!" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -31,7 +31,7 @@ fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get version
|
# Get version
|
||||||
function getversion(){
|
getversion(){
|
||||||
if [[ -s /etc/redhat-release ]];then
|
if [[ -s /etc/redhat-release ]];then
|
||||||
grep -oE "[0-9.]+" /etc/redhat-release
|
grep -oE "[0-9.]+" /etc/redhat-release
|
||||||
else
|
else
|
||||||
|
|
@ -40,7 +40,7 @@ function getversion(){
|
||||||
}
|
}
|
||||||
|
|
||||||
# CentOS version
|
# CentOS version
|
||||||
function centosversion(){
|
centosversion(){
|
||||||
local code=$1
|
local code=$1
|
||||||
local version="`getversion`"
|
local version="`getversion`"
|
||||||
local main_ver=${version%%.*}
|
local main_ver=${version%%.*}
|
||||||
|
|
@ -52,15 +52,22 @@ function centosversion(){
|
||||||
}
|
}
|
||||||
|
|
||||||
# Disable selinux
|
# Disable selinux
|
||||||
function disable_selinux(){
|
disable_selinux(){
|
||||||
if [ -s /etc/selinux/config ] && grep 'SELINUX=enforcing' /etc/selinux/config; then
|
if [ -s /etc/selinux/config ] && grep 'SELINUX=enforcing' /etc/selinux/config; then
|
||||||
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
|
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
|
||||||
setenforce 0
|
setenforce 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_ip(){
|
||||||
|
local IP=$( ip addr | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | egrep -v "^192\.168|^172\.1[6-9]\.|^172\.2[0-9]\.|^172\.3[0-2]\.|^10\.|^127\.|^255\.|^0\." | head -n 1 )
|
||||||
|
[ -z ${IP} ] && IP=$( wget -qO- -t1 -T2 ipv4.icanhazip.com )
|
||||||
|
[ -z ${IP} ] && IP=$( wget -qO- -t1 -T2 ipinfo.io/ip )
|
||||||
|
[ ! -z ${IP} ] && echo ${IP} || echo
|
||||||
|
}
|
||||||
|
|
||||||
# Pre-installation settings
|
# Pre-installation settings
|
||||||
function pre_install(){
|
pre_install(){
|
||||||
# Not support CentOS 5
|
# Not support CentOS 5
|
||||||
if centosversion 5; then
|
if centosversion 5; then
|
||||||
echo "Not support CentOS 5, please change to CentOS 6 or 7 and try again."
|
echo "Not support CentOS 5, please change to CentOS 6 or 7 and try again."
|
||||||
|
|
@ -70,11 +77,11 @@ function pre_install(){
|
||||||
echo "Please input password for shadowsocks-libev:"
|
echo "Please input password for shadowsocks-libev:"
|
||||||
read -p "(Default password: teddysun.com):" shadowsockspwd
|
read -p "(Default password: teddysun.com):" shadowsockspwd
|
||||||
[ -z "$shadowsockspwd" ] && shadowsockspwd="teddysun.com"
|
[ -z "$shadowsockspwd" ] && shadowsockspwd="teddysun.com"
|
||||||
echo ""
|
echo
|
||||||
echo "---------------------------"
|
echo "---------------------------"
|
||||||
echo "password = $shadowsockspwd"
|
echo "password = $shadowsockspwd"
|
||||||
echo "---------------------------"
|
echo "---------------------------"
|
||||||
echo ""
|
echo
|
||||||
#Set shadowsocks-libev config port
|
#Set shadowsocks-libev config port
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
|
@ -84,11 +91,11 @@ function pre_install(){
|
||||||
expr $shadowsocksport + 0 &>/dev/null
|
expr $shadowsocksport + 0 &>/dev/null
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
if [ $shadowsocksport -ge 1 ] && [ $shadowsocksport -le 65535 ]; then
|
if [ $shadowsocksport -ge 1 ] && [ $shadowsocksport -le 65535 ]; then
|
||||||
echo ""
|
echo
|
||||||
echo "---------------------------"
|
echo "---------------------------"
|
||||||
echo "port = $shadowsocksport"
|
echo "port = $shadowsocksport"
|
||||||
echo "---------------------------"
|
echo "---------------------------"
|
||||||
echo ""
|
echo
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
echo "Input error! Please input correct numbers."
|
echo "Input error! Please input correct numbers."
|
||||||
|
|
@ -106,7 +113,7 @@ function pre_install(){
|
||||||
stty echo
|
stty echo
|
||||||
stty $SAVEDSTTY
|
stty $SAVEDSTTY
|
||||||
}
|
}
|
||||||
echo ""
|
echo
|
||||||
echo "Press any key to start...or Press Ctrl+C to cancel"
|
echo "Press any key to start...or Press Ctrl+C to cancel"
|
||||||
char=`get_char`
|
char=`get_char`
|
||||||
#Install necessary dependencies
|
#Install necessary dependencies
|
||||||
|
|
@ -114,29 +121,25 @@ function pre_install(){
|
||||||
yum install -y automake make curl curl-devel zlib-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel asciidoc
|
yum install -y automake make curl curl-devel zlib-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel asciidoc
|
||||||
# Get IP address
|
# Get IP address
|
||||||
echo "Getting Public IP address, Please wait a moment..."
|
echo "Getting Public IP address, Please wait a moment..."
|
||||||
IP=$(curl -s -4 icanhazip.com)
|
echo -e "Your main public IP is\t\033[32m $(get_ip) \033[0m"
|
||||||
if [[ "$IP" = "" ]]; then
|
echo
|
||||||
IP=`curl -s -4 ipinfo.io/ip`
|
|
||||||
fi
|
|
||||||
echo -e "Your main public IP is\t\033[32m$IP\033[0m"
|
|
||||||
echo ""
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Download latest shadowsocks-libev
|
# Download latest shadowsocks-libev
|
||||||
function download_files(){
|
download_files(){
|
||||||
if [ -f ${shadowsocks_libev_ver}.zip ];then
|
if [ -f ${shadowsocks_libev_ver}.zip ];then
|
||||||
echo "${shadowsocks_libev_ver}.zip [found]"
|
echo "${shadowsocks_libev_ver}.zip [found]"
|
||||||
else
|
else
|
||||||
if ! wget --no-check-certificate https://github.com/shadowsocks/shadowsocks-libev/archive/v2.5.0.zip -O ${shadowsocks_libev_ver}.zip; then
|
if ! wget --no-check-certificate https://github.com/shadowsocks/shadowsocks-libev/archive/v2.5.1.zip -O ${shadowsocks_libev_ver}.zip; then
|
||||||
echo "Failed to download ${shadowsocks_libev_ver}.zip"
|
echo "Failed to download ${shadowsocks_libev_ver}.zip"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
unzip ${shadowsocks_libev_ver}.zip
|
unzip -q ${shadowsocks_libev_ver}.zip
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
cd ${cur_dir}/${shadowsocks_libev_ver}/
|
cd ${cur_dir}/${shadowsocks_libev_ver}/
|
||||||
else
|
else
|
||||||
echo ""
|
echo
|
||||||
echo "Unzip ${shadowsocks_libev_ver}.zip failed! Please visit https://teddysun.com/357.html and contact."
|
echo "Unzip ${shadowsocks_libev_ver}.zip failed! Please visit https://teddysun.com/357.html and contact."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
@ -148,7 +151,7 @@ function download_files(){
|
||||||
}
|
}
|
||||||
|
|
||||||
# Config shadowsocks
|
# Config shadowsocks
|
||||||
function config_shadowsocks(){
|
config_shadowsocks(){
|
||||||
if [ ! -d /etc/shadowsocks-libev ];then
|
if [ ! -d /etc/shadowsocks-libev ];then
|
||||||
mkdir /etc/shadowsocks-libev
|
mkdir /etc/shadowsocks-libev
|
||||||
fi
|
fi
|
||||||
|
|
@ -166,7 +169,7 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
# firewall set
|
# firewall set
|
||||||
function firewall_set(){
|
firewall_set(){
|
||||||
echo "firewall set start..."
|
echo "firewall set start..."
|
||||||
if centosversion 6; then
|
if centosversion 6; then
|
||||||
/etc/init.d/iptables status > /dev/null 2>&1
|
/etc/init.d/iptables status > /dev/null 2>&1
|
||||||
|
|
@ -205,7 +208,7 @@ function firewall_set(){
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
function install(){
|
install(){
|
||||||
# Build and Install shadowsocks-libev
|
# Build and Install shadowsocks-libev
|
||||||
if [ -s /usr/local/bin/ss-server ];then
|
if [ -s /usr/local/bin/ss-server ];then
|
||||||
echo "shadowsocks-libev has been installed!"
|
echo "shadowsocks-libev has been installed!"
|
||||||
|
|
@ -227,7 +230,7 @@ function install(){
|
||||||
echo "Shadowsocks-libev start failure!"
|
echo "Shadowsocks-libev start failure!"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo ""
|
echo
|
||||||
echo "Shadowsocks-libev install failed! Please visit https://teddysun.com/357.html and contact."
|
echo "Shadowsocks-libev install failed! Please visit https://teddysun.com/357.html and contact."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
@ -238,23 +241,23 @@ function install(){
|
||||||
# Delete shadowsocks-libev zip file
|
# Delete shadowsocks-libev zip file
|
||||||
rm -f ${cur_dir}/${shadowsocks_libev_ver}.zip
|
rm -f ${cur_dir}/${shadowsocks_libev_ver}.zip
|
||||||
clear
|
clear
|
||||||
echo ""
|
echo
|
||||||
echo "Congratulations, shadowsocks-libev install completed!"
|
echo "Congratulations, shadowsocks-libev install completed!"
|
||||||
echo -e "Your Server IP: \033[41;37m ${IP} \033[0m"
|
echo -e "Your Server IP: \033[41;37m $(get_ip) \033[0m"
|
||||||
echo -e "Your Server Port: \033[41;37m ${shadowsocksport} \033[0m"
|
echo -e "Your Server Port: \033[41;37m ${shadowsocksport} \033[0m"
|
||||||
echo -e "Your Password: \033[41;37m ${shadowsockspwd} \033[0m"
|
echo -e "Your Password: \033[41;37m ${shadowsockspwd} \033[0m"
|
||||||
echo -e "Your Local IP: \033[41;37m 127.0.0.1 \033[0m"
|
echo -e "Your Local IP: \033[41;37m 127.0.0.1 \033[0m"
|
||||||
echo -e "Your Local Port: \033[41;37m 1080 \033[0m"
|
echo -e "Your Local Port: \033[41;37m 1080 \033[0m"
|
||||||
echo -e "Your Encryption Method: \033[41;37m aes-256-cfb \033[0m"
|
echo -e "Your Encryption Method: \033[41;37m aes-256-cfb \033[0m"
|
||||||
echo ""
|
echo
|
||||||
echo "Welcome to visit:https://teddysun.com/357.html"
|
echo "Welcome to visit:https://teddysun.com/357.html"
|
||||||
echo "Enjoy it!"
|
echo "Enjoy it!"
|
||||||
echo ""
|
echo
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# Uninstall Shadowsocks-libev
|
# Uninstall Shadowsocks-libev
|
||||||
function uninstall_shadowsocks_libev(){
|
uninstall_shadowsocks_libev(){
|
||||||
printf "Are you sure uninstall shadowsocks_libev? (y/n) "
|
printf "Are you sure uninstall shadowsocks_libev? (y/n) "
|
||||||
printf "\n"
|
printf "\n"
|
||||||
read -p "(Default: n):" answer
|
read -p "(Default: n):" answer
|
||||||
|
|
@ -296,7 +299,7 @@ function uninstall_shadowsocks_libev(){
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install Shadowsocks-libev
|
# Install Shadowsocks-libev
|
||||||
function install_shadowsocks_libev(){
|
install_shadowsocks_libev(){
|
||||||
rootness
|
rootness
|
||||||
disable_selinux
|
disable_selinux
|
||||||
pre_install
|
pre_install
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user