feat: 调整
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user