feat(伪装博客): update
parent
a9f398f063
commit
8d66226e15
Binary file not shown.
|
@ -605,7 +605,7 @@ randomPathFunction(){
|
||||||
nginxBlog(){
|
nginxBlog(){
|
||||||
# echoContent yellow "添加伪装博客--->"
|
# echoContent yellow "添加伪装博客--->"
|
||||||
echoContent skyBlue "\n进度 $1/${totalProgress} : 添加伪装博客"
|
echoContent skyBlue "\n进度 $1/${totalProgress} : 添加伪装博客"
|
||||||
if [[ -d "/usr/share/nginx/html" && -f "/usr/share/nginx/html/check" ]]
|
if [[ -d "/usr/share/nginx/html" && -f "/usr/share/nginx/html/check" ]]
|
||||||
then
|
then
|
||||||
read -p "检测到安装伪装博客,是否需要重新安装[y/n]:" nginxBlogInstallStatus
|
read -p "检测到安装伪装博客,是否需要重新安装[y/n]:" nginxBlogInstallStatus
|
||||||
if [[ "${nginxBlogInstallStatus}" = "y" ]]
|
if [[ "${nginxBlogInstallStatus}" = "y" ]]
|
||||||
|
@ -614,15 +614,16 @@ nginxBlog(){
|
||||||
wget -q -P /usr/share/nginx https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/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 -o /usr/share/nginx/html.zip -d /usr/share/nginx/html > /dev/null
|
unzip -o /usr/share/nginx/html.zip -d /usr/share/nginx/html > /dev/null
|
||||||
rm -f /usr/share/nginx/html.zip*
|
rm -f /usr/share/nginx/html.zip*
|
||||||
|
echoContent green " ---> 添加伪装博客成功"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
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/fodder/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 -o /usr/share/nginx/html.zip -d /usr/share/nginx/html > /dev/null
|
unzip -o /usr/share/nginx/html.zip -d /usr/share/nginx/html > /dev/null
|
||||||
rm -f /usr/share/nginx/html.zip*
|
rm -f /usr/share/nginx/html.zip*
|
||||||
|
echoContent green " ---> 添加伪装博客成功"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echoContent green " ---> 添加伪装博客成功"
|
|
||||||
}
|
}
|
||||||
# 操作Nginx
|
# 操作Nginx
|
||||||
handleNginx(){
|
handleNginx(){
|
||||||
|
|
Loading…
Reference in New Issue