From 654f2321bdbde042cee47374097abe648cf8c066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= <121604513+yonggekkk@users.noreply.github.com> Date: Mon, 24 Mar 2025 12:39:38 +0800 Subject: [PATCH] Update serv00.sh --- serv00.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serv00.sh b/serv00.sh index eef82d3..74c4fc3 100644 --- a/serv00.sh +++ b/serv00.sh @@ -9,6 +9,7 @@ green() { echo -e "\e[1;32m$1\033[0m"; } yellow() { echo -e "\e[1;33m$1\033[0m"; } purple() { echo -e "\e[1;35m$1\033[0m"; } reading() { read -p "$(red "$1")" "$2"; } +devil binexec on >/dev/null 2>&1 USERNAME=$(whoami | tr '[:upper:]' '[:lower:]') snb=$(hostname | cut -d. -f1) nb=$(hostname | cut -d '.' -f 1 | tr -d 's') @@ -26,7 +27,7 @@ devil www add ${USERNAME}.${address} php > /dev/null 2>&1 FILE_PATH="${HOME}/domains/${USERNAME}.${address}/public_html" [ -d "$FILE_PATH" ] || mkdir -p "$FILE_PATH" [ -d "$WORKDIR" ] || (mkdir -p "$WORKDIR" && chmod 777 "$WORKDIR") -devil binexec on >/dev/null 2>&1 +curl -sk "http://${snb}.${USERNAME}.${hona}.net/up" > /dev/null 2>&1 read_ip() { cat ip.txt