提交 c7263743 编写于 作者: T Toyo 提交者: GitHub

# 因逗比云被墙更换域名而更新这些脚本内逗比云地址

上级 79757d43
......@@ -5,12 +5,12 @@ export PATH
#=================================================
# System Required: CentOS/Debian/Ubuntu
# Description: DowsDNS
# Version: 1.0.6
# Version: 1.0.7
# Author: Toyo
# Blog: https://doub.io/dowsdns-jc3/
#=================================================
sh_ver="1.0.6"
sh_ver="1.0.7"
file="/usr/local/dowsDNS"
dowsdns_conf="/usr/local/dowsDNS/conf/config.json"
dowsdns_data="/usr/local/dowsDNS/conf/hosts_repository_config.json"
......@@ -47,7 +47,7 @@ check_pid(){
}
Download_dowsdns(){
cd "/usr/local"
wget -N --no-check-certificate "https://softs.pw/%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91/PC/dowsDNS/Linux%2BMac/dowsDNS.zip"
wget -N --no-check-certificate "https://softs.fun/%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91/PC/dowsDNS/Linux%2BMac/dowsDNS.zip"
[[ ! -e "dowsDNS.zip" ]] && echo -e "${Error} DowsDNS 下载失败 !" && exit 1
unzip dowsDNS.zip && rm -rf dowsDNS.zip
[[ ! -e "dowsDNS-master" ]] && echo -e "${Error} DowsDNS 解压失败 !" && exit 1
......@@ -56,14 +56,14 @@ Download_dowsdns(){
}
Service_dowsdns(){
if [[ ${release} = "centos" ]]; then
if ! wget --no-check-certificate "https://softs.pw/Bash/other/dowsdns_centos" -O /etc/init.d/dowsdns; then
if ! wget --no-check-certificate "https://softs.fun/Bash/other/dowsdns_centos" -O /etc/init.d/dowsdns; then
echo -e "${Error} DowsDNS 服务管理脚本下载失败 !" && exit 1
fi
chmod +x /etc/init.d/dowsdns
chkconfig --add dowsdns
chkconfig dowsdns on
else
if ! wget --no-check-certificate "https://softs.pw/Bash/other/dowsdns_debian" -O /etc/init.d/dowsdns; then
if ! wget --no-check-certificate "https://softs.fun/Bash/other/dowsdns_debian" -O /etc/init.d/dowsdns; then
echo -e "${Error} DowsDNS 服务管理脚本下载失败 !" && exit 1
fi
chmod +x /etc/init.d/dowsdns
......@@ -546,14 +546,14 @@ View_Log(){
}
Update_Shell(){
echo -e "当前版本为 [ ${sh_ver} ],开始检测最新版本..."
sh_new_ver=$(wget --no-check-certificate -qO- softs.pw/Bash/dowsdns.sh|grep 'sh_ver="'|awk -F "=" '{print $NF}'|sed 's/\"//g'|head -1)
sh_new_ver=$(wget --no-check-certificate -qO- softs.fun/Bash/dowsdns.sh|grep 'sh_ver="'|awk -F "=" '{print $NF}'|sed 's/\"//g'|head -1)
[[ -z ${sh_new_ver} ]] && echo -e "${Error} 检测最新版本失败 !" && exit 0
if [[ ${sh_new_ver} != ${sh_ver} ]]; then
echo -e "发现新版本[ ${sh_new_ver} ],是否更新?[Y/n]"
stty erase '^H' && read -p "(默认: y):" yn
[[ -z "${yn}" ]] && yn="y"
if [[ ${yn} == [Yy] ]]; then
wget -N --no-check-certificate "https://softs.pw/Bash/dowsdns.sh" && chmod +x dowsdns.sh
wget -N --no-check-certificate "https://softs.fun/Bash/dowsdns.sh" && chmod +x dowsdns.sh
echo -e "脚本已更新为最新版本[ ${sh_new_ver} ] !"
else
echo && echo " 已取消..." && echo
......
......@@ -5,12 +5,12 @@ export PATH
#=================================================
# System Required: CentOS 6+/Debian 6+/Ubuntu 14.04+
# Description: Install the ShadowsocksR server
# Version: 2.0.22
# Version: 2.0.23
# Author: Toyo
# Blog: https://doub.io/ss-jc42/
#=================================================
sh_ver="2.0.22"
sh_ver="2.0.23"
ssr_folder="/usr/local/shadowsocksr"
ssr_ss_file="${ssr_folder}/shadowsocks"
config_file="${ssr_folder}/config.json"
......@@ -1308,7 +1308,7 @@ Set_config_connect_verbose_info(){
}
Update_Shell(){
echo -e "当前版本为 [ ${sh_ver} ],开始检测最新版本..."
sh_new_ver=$(wget --no-check-certificate -qO- "https://softs.pw/Bash/ssr.sh"|grep 'sh_ver="'|awk -F "=" '{print $NF}'|sed 's/\"//g'|head -1) && sh_new_type="softs"
sh_new_ver=$(wget --no-check-certificate -qO- "https://softs.fun/Bash/ssr.sh"|grep 'sh_ver="'|awk -F "=" '{print $NF}'|sed 's/\"//g'|head -1) && sh_new_type="softs"
[[ -z ${sh_new_ver} ]] && sh_new_ver=$(wget --no-check-certificate -qO- "https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssr.sh"|grep 'sh_ver="'|awk -F "=" '{print $NF}'|sed 's/\"//g'|head -1) && sh_new_type="github"
[[ -z ${sh_new_ver} ]] && echo -e "${Error} 检测最新版本失败 !" && exit 0
if [[ ${sh_new_ver} != ${sh_ver} ]]; then
......@@ -1317,7 +1317,7 @@ Update_Shell(){
[[ -z "${yn}" ]] && yn="y"
if [[ ${yn} == [Yy] ]]; then
if [[ $sh_new_type == "softs" ]]; then
wget -N --no-check-certificate https://softs.pw/Bash/ssr.sh && chmod +x ssr.sh
wget -N --no-check-certificate https://softs.fun/Bash/ssr.sh && chmod +x ssr.sh
else
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssr.sh && chmod +x ssr.sh
fi
......
......@@ -5,11 +5,11 @@ export PATH
#=================================================
# System Required: CentOS 6+/Debian 7+/Ubuntu 14.04+
# Description: ShadowsocksR Status
# Version: 1.0.4
# Version: 1.0.5
# Author: Toyo
#=================================================
sh_ver="1.0.4"
sh_ver="1.0.5"
Timeout="10"
Test_URL="https://github.com"
Web_file="/usr/local/SSRStatus"
......@@ -377,7 +377,7 @@ ss_config(){
you=$(echo -e "${Config_info}"|awk -F "@" '{print $2}')
port=$(echo -e "${you}"|awk -F ":" '{print $NF}')
ip=$(echo -e "${you}"|awk -F ":${port}" '{print $1}')
if [[ $(echo -e "${ip}"|wc -L) -le 8 ]]; then
if [[ $(echo -e "${ip}"|wc -L) -lt 7 ]]; then
echo -e "${Error} 错误,IP格式错误或为 ipv6地址[ ${ip} ]" | tee -a ${log_file}
if [[ ${analysis_type} == "add" ]]; then
exit_GG
......@@ -411,7 +411,7 @@ ssr_config(){
zuo=$(echo -e "${Config_info}"|awk -F ":${protocol}" '{print $1}')
port=$(echo -e "${zuo}"|awk -F ":" '{print $NF}')
ip=$(echo -e "${Config_info}"|awk -F ":${port}" '{print $1}')
if [[ $(echo -e "${ip}"|wc -L) -le 8 ]]; then
if [[ $(echo -e "${ip}"|wc -L) -lt 7 ]]; then
echo -e "${Error} 错误,IP格式错误[ ${ip} ]" | tee -a ${log_file}
if [[ ${analysis_type} == "add" ]]; then
exit_GG
......@@ -809,7 +809,7 @@ Del_Crontab(){
}
Update_Shell(){
echo -e "当前版本为 [ ${sh_ver} ],开始检测最新版本..."
sh_new_ver=$(wget --no-check-certificate -qO- "https://softs.pw/Bash/ssrstatus.sh"|grep 'sh_ver="'|awk -F "=" '{print $NF}'|sed 's/\"//g'|head -1) && sh_new_type="softs"
sh_new_ver=$(wget --no-check-certificate -qO- "https://softs.fun/Bash/ssrstatus.sh"|grep 'sh_ver="'|awk -F "=" '{print $NF}'|sed 's/\"//g'|head -1) && sh_new_type="softs"
[[ -z ${sh_new_ver} ]] && sh_new_ver=$(wget --no-check-certificate -qO- "https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssrstatus.sh"|grep 'sh_ver="'|awk -F "=" '{print $NF}'|sed 's/\"//g'|head -1) && sh_new_type="github"
[[ -z ${sh_new_ver} ]] && echo -e "${Error} 检测最新版本失败 !" && exit 0
if [[ ${sh_new_ver} != ${sh_ver} ]]; then
......@@ -818,7 +818,7 @@ Update_Shell(){
[[ -z "${yn}" ]] && yn="y"
if [[ ${yn} == [Yy] ]]; then
if [[ $sh_new_type == "softs" ]]; then
wget -N --no-check-certificate https://softs.pw/Bash/ssrstatus.sh && chmod +x ssrstatus.sh
wget -N --no-check-certificate https://softs.fun/Bash/ssrstatus.sh && chmod +x ssrstatus.sh
else
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssrstatus.sh && chmod +x ssrstatus.sh
fi
......
......@@ -5,12 +5,12 @@ export PATH
#=================================================
# System Required: CentOS/Debian/Ubuntu
# Description: ServerStatus client + server
# Version: 1.0.8
# Version: 1.0.9
# Author: Toyo
# Blog: https://doub.io/shell-jc3/
#=================================================
sh_ver="1.0.8"
sh_ver="1.0.9"
file="/usr/local/ServerStatus"
web_file="/usr/local/ServerStatus/web"
server_file="/usr/local/ServerStatus/server"
......@@ -774,7 +774,7 @@ post-down iptables-save > /etc/iptables.up.rules" >> /etc/network/interfaces
}
Update_Shell(){
echo -e "当前版本为 [ ${sh_ver} ],开始检测最新版本..."
sh_new_ver=$(wget --no-check-certificate -qO- "https://softs.pw/Bash/status.sh"|grep 'sh_ver="'|awk -F "=" '{print $NF}'|sed 's/\"//g'|head -1) && sh_new_type="softs"
sh_new_ver=$(wget --no-check-certificate -qO- "https://softs.fun/Bash/status.sh"|grep 'sh_ver="'|awk -F "=" '{print $NF}'|sed 's/\"//g'|head -1) && sh_new_type="softs"
[[ -z ${sh_new_ver} ]] && sh_new_ver=$(wget --no-check-certificate -qO- "https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/status.sh"|grep 'sh_ver="'|awk -F "=" '{print $NF}'|sed 's/\"//g'|head -1) && sh_new_type="github"
[[ -z ${sh_new_ver} ]] && echo -e "${Error} 检测最新版本失败 !" && exit 0
if [[ ${sh_new_ver} != ${sh_ver} ]]; then
......@@ -783,7 +783,7 @@ Update_Shell(){
[[ -z "${yn}" ]] && yn="y"
if [[ ${yn} == [Yy] ]]; then
if [[ $sh_new_type == "softs" ]]; then
wget -N --no-check-certificate https://softs.pw/Bash/status.sh && chmod +x status.sh
wget -N --no-check-certificate https://softs.fun/Bash/status.sh && chmod +x status.sh
else
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/status.sh && chmod +x status.sh
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册