#!/bin/bash
# 修复Synology Docker自动挂载冲突 - 步骤1

# 1. 启动临时容器
echo "[1] 启动临时容器..."
docker run -d --name temp_fix sanguo_vnpy:v2 /bin/bash -c "sleep 600"
sleep 3

# 2. 删除冲突文件
echo "[2] 删除冲突文件..."
docker exec temp_fix rm -f /usr/share/zoneinfo/Etc/UTC 2>/dev/null || true
docker exec temp_fix rm -f /app/requirements.txt 2>/dev/null || true
docker exec temp_fix ls -la /usr/share/zoneinfo/Etc/ 2>/dev/null || echo "目录不存在"
docker exec temp_fix ls -la /app/ 2>/dev/null

echo "[2] 冲突文件已删除"
