From 9838f54328ec6b842752f62cecbb51c611c2e07c Mon Sep 17 00:00:00 2001 From: haotian <2421912570@qq.com> Date: Fri, 27 Feb 2026 16:32:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A1=AE=E5=AE=9E=E7=9A=84hl?= =?UTF-8?q?s=E7=9B=AE=E5=BD=95=E7=AC=A6=E5=8F=B7=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index f5c3322..a2640d6 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -43,6 +43,14 @@ create_runtime_dirs() { mkdir -p "$ALARMS_DIR" mkdir -p "$CLIPS_DIR" + # 创建 HLS 符号链接,使 HTTP server 能访问 HLS 文件 + # HLS 输出到 /var/lib/...,但 HTTP server 从 web_root/hls/ 提供文件 + if [ ! -L "$INSTALL_DIR/web/hls" ]; then + rm -rf "$INSTALL_DIR/web/hls" + ln -s "$HLS_DIR" "$INSTALL_DIR/web/hls" + echo -e "${GREEN}✓${NC} 创建 HLS 符号链接: web/hls -> $HLS_DIR" + fi + # 设置权限(日志目录使用 orangepi 用户,方便查看和管理) chown -R root:root "$RUNTIME_DIR"