Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyo authored Aug 12, 2017
1 parent f7a08bc commit b1b7321
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
8 changes: 2 additions & 6 deletions haproxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export PATH
#=================================================
# System Required: CentOS/Debian/Ubuntu
# Description: HaProxy
# Version: 1.0.5
# Version: 1.0.6
# Author: Toyo
# Blog: https://doub.io/wlzy-19/
#=================================================
Expand Down Expand Up @@ -68,8 +68,6 @@ installHaProxy(){
if [[ ${HaProxy_exist} != "" ]]; then
echo -e "\033[41;37m [错误] \033[0m 已经安装HaProxy,请检查 !" && exit 1
fi
check_sys
# 系统判断
if [[ ${release} == "centos" ]]; then
yum update && yum install -y vim haproxy
else
Expand Down Expand Up @@ -260,8 +258,6 @@ uninstallHaProxy(){
if [[ ! -z $PID ]]; then
stopHaProxy
fi
check_sys
# 系统判断
if [[ ${release} == "centos" ]]; then
yum remove haproxy -y
else
Expand All @@ -278,7 +274,7 @@ uninstallHaProxy(){
echo && echo "卸载已取消..." && echo
fi
}

check_sys
action=$1
[[ -z $1 ]] && action=install
case "$action" in
Expand Down
8 changes: 4 additions & 4 deletions ssr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ export PATH
#=================================================
# System Required: CentOS 6+/Debian 6+/Ubuntu 14.04+
# Description: Install the ShadowsocksR server
# Version: 2.0.27
# Version: 2.0.28
# Author: Toyo
# Blog: https://doub.io/ss-jc42/
#=================================================

sh_ver="2.0.27"
sh_ver="2.0.28"
filepath=$(cd "$(dirname "$0")"; pwd)
file=$(echo -e "${filepath}"|awk -F "$0" '{print $1}')
ssr_folder="/usr/local/shadowsocksr"
Expand Down Expand Up @@ -1332,12 +1332,12 @@ Other_functions(){
# 封禁 BT PT SPAM
BanBTPTSPAM(){
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ban_iptables.sh && chmod +x ban_iptables.sh && bash ban_iptables.sh banall
rm -rf banall.sh
rm -rf ban_iptables.sh
}
# 解封 BT PT SPAM
UnBanBTPTSPAM(){
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ban_iptables.sh && chmod +x ban_iptables.sh && bash ban_iptables.sh unbanall
rm -rf banall.sh
rm -rf ban_iptables.sh
}
Set_config_connect_verbose_info(){
SSR_installation_status
Expand Down
8 changes: 4 additions & 4 deletions ssrmu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ export PATH
#=================================================
# System Required: CentOS 6+/Debian 6+/Ubuntu 14.04+
# Description: Install the ShadowsocksR mudbjson server
# Version: 1.0.5
# Version: 1.0.6
# Author: Toyo
# Blog: https://doub.io/ss-jc60/
#=================================================

sh_ver="1.0.5"
sh_ver="1.0.6"
filepath=$(cd "$(dirname "$0")"; pwd)
file=$(echo -e "${filepath}"|awk -F "$0" '{print $1}')
ssr_folder="/usr/local/shadowsocksr"
Expand Down Expand Up @@ -1468,12 +1468,12 @@ Other_functions(){
# 封禁 BT PT SPAM
BanBTPTSPAM(){
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ban_iptables.sh && chmod +x ban_iptables.sh && bash ban_iptables.sh banall
rm -rf banall.sh
rm -rf ban_iptables.sh
}
# 解封 BT PT SPAM
UnBanBTPTSPAM(){
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ban_iptables.sh && chmod +x ban_iptables.sh && bash ban_iptables.sh unbanall
rm -rf banall.sh
rm -rf ban_iptables.sh
}
Set_config_connect_verbose_info(){
SSR_installation_status
Expand Down

0 comments on commit b1b7321

Please sign in to comment.