Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
ToyoDAdoubi
提交
c7263743
T
ToyoDAdoubi
项目概览
OpenDocCN
/
ToyoDAdoubi
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
ToyoDAdoubi
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c7263743
编写于
8月 04, 2017
作者:
T
Toyo
提交者:
GitHub
8月 04, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
# 因逗比云被墙更换域名而更新这些脚本内逗比云地址
上级
79757d43
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
21 addition
and
21 deletion
+21
-21
dowsdns.sh
dowsdns.sh
+7
-7
ssr.sh
ssr.sh
+4
-4
ssrstatus.sh
ssrstatus.sh
+6
-6
status.sh
status.sh
+4
-4
未找到文件。
dowsdns.sh
浏览文件 @
c7263743
...
...
@@ -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
...
...
ssr.sh
浏览文件 @
c7263743
...
...
@@ -5,12 +5,12 @@ export PATH
#=================================================
# System Required: CentOS 6+/Debian 6+/Ubuntu 14.04+
# Description: Install the ShadowsocksR server
# Version: 2.0.2
2
# Version: 2.0.2
3
# Author: Toyo
# Blog: https://doub.io/ss-jc42/
#=================================================
sh_ver
=
"2.0.2
2
"
sh_ver
=
"2.0.2
3
"
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
...
...
ssrstatus.sh
浏览文件 @
c7263743
...
...
@@ -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
)
-l
e
8
]]
;
then
if
[[
$(
echo
-e
"
${
ip
}
"
|wc
-L
)
-l
t
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
)
-l
e
8
]]
;
then
if
[[
$(
echo
-e
"
${
ip
}
"
|wc
-L
)
-l
t
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
...
...
status.sh
浏览文件 @
c7263743
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录