feat(脚本): 伪装博客重新安装时添加提示。

pull/534/merge
mack-a 2020-12-01 10:02:44 +08:00
parent 5b3e2a5ac5
commit a9f398f063
2 changed files with 17 additions and 3 deletions

Binary file not shown.

View File

@ -605,9 +605,23 @@ randomPathFunction(){
nginxBlog(){ nginxBlog(){
# echoContent yellow "添加伪装博客--->" # echoContent yellow "添加伪装博客--->"
echoContent skyBlue "\n进度 $1/${totalProgress} : 添加伪装博客" echoContent skyBlue "\n进度 $1/${totalProgress} : 添加伪装博客"
rm -rf /usr/share/nginx/html if [[ -d "/usr/share/nginx/html" && -f "/usr/share/nginx/html/check" ]]
wget -q -P /usr/share/nginx https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/blog/unable/html.zip > /dev/null then
unzip -o /usr/share/nginx/html.zip -d /usr/share/nginx/html > /dev/null read -p "检测到安装伪装博客,是否需要重新安装[y/n]" nginxBlogInstallStatus
if [[ "${nginxBlogInstallStatus}" = "y" ]]
then
rm -rf /usr/share/nginx/html
wget -q -P /usr/share/nginx https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/blog/unable/html.zip > /dev/null
unzip -o /usr/share/nginx/html.zip -d /usr/share/nginx/html > /dev/null
rm -f /usr/share/nginx/html.zip*
fi
else
rm -rf /usr/share/nginx/html
wget -q -P /usr/share/nginx https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/blog/unable/html.zip > /dev/null
unzip -o /usr/share/nginx/html.zip -d /usr/share/nginx/html > /dev/null
rm -f /usr/share/nginx/html.zip*
fi
echoContent green " ---> 添加伪装博客成功" echoContent green " ---> 添加伪装博客成功"
} }
# 操作Nginx # 操作Nginx