feat: 调整

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

View File

@@ -2,6 +2,12 @@
COMPOSE_FILE="../docker/docker-compose.yml"
# ==== 检查 root 权限 ====
if [ "$(id -u)" -ne 0 ]; then
echo "请使用 root 权限运行此脚本"
exit 1
fi
echo "[INFO] 开始关闭服务..."
# ==== 关闭服务 ====
if [ -f "$COMPOSE_FILE" ]; then