feat: 调整

This commit is contained in:
caiyuchao committed 2025-09-28 18:37:46 +08:00
1 parent 1dfa318a7d
commit 91ef7e75d9
3 files changed
+15 -3

No files matched your search

+8 -2
View File
@@ -2,6 +2,12 @@
echo "[INFO] 开始重启服务..."
./shutdown.sh
# ==== 检查 root 权限 ====
if [ "$(id -u)" -ne 0 ]; then
echo "请使用 root 权限运行此脚本"
exit 1
fi
./start.sh
sudo ./shutdown.sh
sudo ./start.sh