Update serv00.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2025-03-24 12:39:38 +08:00
committed by GitHub
parent f921d99716
commit 654f2321bd
+2 -1
View File
@@ -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