1.4.8-Fix

This commit is contained in:
RachelOS
2025-12-11 13:53:12 +08:00
parent 2f717b8f29
commit 0fd377b93a
2 changed files with 4 additions and 5 deletions
-1
View File
@@ -198,4 +198,3 @@ The following are the environment variable configurations supported in `config.y
| `LOG_FILE` | Empty | Log file path |
| `LOG_LEVEL` | `INFO` | Log level |
| `EXPORT_PDF` | `False` | Whether to enable PDF export functionality |
+4 -4
View File
@@ -82,11 +82,11 @@ if [ -f "requirements.txt" ]; then
fi
fi
INSTALL=${INSTALL:-"True"}
INSTALL=${INSTALL:-False}
# 根据环境变量决定是否安装浏览器
if [ "$INSTALL" = "False" ]; then
echo "INSTALL环境变量为True,开始安装playwright浏览器..."
if [ "$INSTALL" = True ]; then
echo "INSTALL环境变量为$INSTALL,开始安装playwright浏览器..."
playwright install $BROWSER_TYPE --with-deps
else
echo "INSTALL环境变量不为True,跳过playwright浏览器安装"
echo "INSTALL环境变量为$INSTALL,跳过playwright浏览器安装"
fi