Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
fix: random select fake sites
Browse files Browse the repository at this point in the history
  • Loading branch information
reeceyng committed Dec 2, 2022
1 parent 19895a2 commit 338473e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5432,8 +5432,8 @@ menu() {
cd "$HOME" || exit
echoContent red "\n=============================================================="
echoContent green "作者:Reece"
echoContent green "原作者mack-a"
echoContent green "当前版本:v2.6.13"
echoContent green "原作者:mack-a"
echoContent green "当前版本:v2.6.14"
echoContent green "Github:https://github.com/reeceyng/v2ray-agent"
echoContent green "描述:八合一共存脚本\c"
showInstallStatus
Expand Down
6 changes: 3 additions & 3 deletions shell/install_en.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1419,14 +1419,14 @@ nginxBlog() {
read -r -p "Detected installation of fake sites, do you need to reinstall [y/n]:" nginxBlogInstallStatus
if [[ "${nginxBlogInstallStatus}" == "y" ]]; then
rm -rf /usr/share/nginx/html
randomNum=$((RANDOM % 6 + 1))
randomNum=$((RANDOM % 9 + 1))
wget -q -P /usr/share/nginx https://raw.githubusercontent.com/reeceyng/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 " ---> Add fake site successfully"
fi
else
randomNum=$((RANDOM % 6 + 1))
randomNum=$((RANDOM % 9 + 1))
rm -rf /usr/share/nginx/html
wget -q -P /usr/share/nginx https://raw.githubusercontent.com/reeceyng/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
Expand Down Expand Up @@ -5434,7 +5434,7 @@ menu() {
echoContent red "\n=============================================================="
echoContent green "Author:Reece"
echoContent green "Original author:mack-a"
echoContent green "Current version: v2.6.13"
echoContent green "Current version: v2.6.14"
echoContent green "Github:https://github.com/reeceyng/v2ray-agent"
echoContent green "Description: 8-in-1 coexistence script\c"
showInstallStatus
Expand Down

0 comments on commit 338473e

Please sign in to comment.