This commit is contained in:
2026-06-01 00:53:38 +08:00
parent 4a5dfef19c
commit e71cd54029
5 changed files with 181 additions and 4 deletions
+2 -1
View File
@@ -2,7 +2,8 @@
# 静默启动:nohup command > output.log 2>&1 &
BLOG_DIR="$HOME/hugosite"
cd "$BLOG_DIR"
rm -rf ./public
rm -rf ./resources
# 获取 IP 地址
IPV4=$(ifconfig | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}' | head -1)
IPV6=$(ifconfig | grep -E "broadcast|autoconf secured" | grep "inet6"| awk '{print $2}' | head -1)