mirror of https://github.com/mack-a/v2ray-agent
feat(脚本): 安装时固定伪站修改为随机伪站
parent
1a2442c093
commit
78b19250e2
16
install.sh
16
install.sh
|
@ -852,16 +852,18 @@ nginxBlog() {
|
|||
read -r -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/html1.zip >/dev/null
|
||||
unzip -o /usr/share/nginx/html1.zip -d /usr/share/nginx/html >/dev/null
|
||||
rm -f /usr/share/nginx/html.zip*
|
||||
randomNum=$((RANDOM%6+1))
|
||||
wget -q -P /usr/share/nginx https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/blog/unable/html${randomNum}.zip >/dev/null
|
||||
unzip -o /usr/share/nginx/html${randomNum}.zip -d /usr/share/nginx/html >/dev/null
|
||||
rm -f /usr/share/nginx/html${randomNum}.zip*
|
||||
echoContent green " ---> 添加伪装站点成功"
|
||||
fi
|
||||
else
|
||||
randomNum=$((RANDOM%6+1))
|
||||
rm -rf /usr/share/nginx/html
|
||||
wget -q -P /usr/share/nginx https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/blog/unable/html1.zip >/dev/null
|
||||
unzip -o /usr/share/nginx/html1.zip -d /usr/share/nginx/html >/dev/null
|
||||
rm -f /usr/share/nginx/html1.zip*
|
||||
wget -q -P /usr/share/nginx https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/blog/unable/html${randomNum}.zip >/dev/null
|
||||
unzip -o /usr/share/nginx/html${randomNum}.zip -d /usr/share/nginx/html >/dev/null
|
||||
rm -f /usr/share/nginx/html${randomNum}.zip*
|
||||
echoContent green " ---> 添加伪装站点成功"
|
||||
fi
|
||||
|
||||
|
@ -3952,7 +3954,7 @@ menu() {
|
|||
cd "$HOME" || exit
|
||||
echoContent red "\n=============================================================="
|
||||
echoContent green "作者:mack-a"
|
||||
echoContent green "当前版本:v2.5.6"
|
||||
echoContent green "当前版本:v2.5.7"
|
||||
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||
echoContent green "描述:八合一共存脚本\c"
|
||||
showInstallStatus
|
||||
|
|
Loading…
Reference in New Issue