fix(脚本): 修改查找条件、修改下载伪装博客的文件地址

pull/534/merge
mack-a 2020-09-10 17:25:20 +08:00
parent 33c8e545fe
commit 609eb36339
1 changed files with 6 additions and 6 deletions

View File

@ -168,21 +168,21 @@ installTools(){
fi fi
if [[ -z `find /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin |grep -v grep|grep wget` ]] if [[ -z `find /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin |grep -v grep|grep -w wget` ]]
then then
# progressTools "yellow" "安装wget--->" # progressTools "yellow" "安装wget--->"
echoContent green " ---> 安装wget" echoContent green " ---> 安装wget"
${installType} wget > /dev/null ${installType} wget > /dev/null
fi fi
if [[ -z `find /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin |grep -v grep|grep unzip` ]] if [[ -z `find /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin |grep -v grep|grep -w unzip` ]]
then then
echoContent green " ---> 安装unzip" echoContent green " ---> 安装unzip"
# progressTools "yellow" "安装unzip--->" # progressTools "yellow" "安装unzip--->"
${installType} unzip > /dev/null ${installType} unzip > /dev/null
fi fi
if [[ -z `find /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin |grep -v grep|grep socat` ]] if [[ -z `find /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin |grep -v grep|grep -w socat` ]]
then then
# progressTools "yellow" "安装socat--->" # progressTools "yellow" "安装socat--->"
echoContent green " ---> 安装socat" echoContent green " ---> 安装socat"
@ -210,7 +210,7 @@ installTools(){
${installType} crontabs > /dev/null ${installType} crontabs > /dev/null
fi fi
fi fi
if [[ -z `find /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin |grep -v grep|grep jq` ]] if [[ -z `find /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin |grep -v grep|grep -w jq` ]]
then then
echoContent green " ---> 安装jq" echoContent green " ---> 安装jq"
# progressTools "yellow" "安装jq--->" # progressTools "yellow" "安装jq--->"
@ -224,7 +224,7 @@ installTools(){
${installType} binutils > /dev/null 2>&1 ${installType} binutils > /dev/null 2>&1
fi fi
if [[ -z `find /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin |grep -v grep|grep nginx` ]] if [[ -z `find /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin |grep -v grep|grep -w nginx` ]]
then then
echoContent green " ---> 安装nginx" echoContent green " ---> 安装nginx"
# progressTools "yellow" "安装nginx--->" # progressTools "yellow" "安装nginx--->"
@ -415,7 +415,7 @@ nginxBlog(){
# echoContent yellow "添加伪装博客--->" # echoContent yellow "添加伪装博客--->"
echoContent skyBlue "\n进度 $1/${totalProgress} : 添加伪装博客" echoContent skyBlue "\n进度 $1/${totalProgress} : 添加伪装博客"
rm -rf /usr/share/nginx/html rm -rf /usr/share/nginx/html
wget -q -P /usr/share/nginx https://raw.githubusercontent.com/mack-a/v2ray-agent/master/blog/unable/html.zip > /dev/null wget -q -P /usr/share/nginx https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/blog/unable/html.zip > /dev/null
unzip /usr/share/nginx/html.zip -d /usr/share/nginx/html > /dev/null unzip /usr/share/nginx/html.zip -d /usr/share/nginx/html > /dev/null
# echoContent yellow "添加伪装博客成功--->" # echoContent yellow "添加伪装博客成功--->"
echoContent green " ---> 添加伪装博客成功" echoContent green " ---> 添加伪装博客成功"