From 4412ce9f17f08f1837d32819d1dd3562856f29ba Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Fri, 8 Nov 2024 18:08:45 +0800 Subject: [PATCH] fix(playwright): add check for HTTPS proxy --- entrypoint | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/entrypoint b/entrypoint index c84a6c11..cd062322 100644 --- a/entrypoint +++ b/entrypoint @@ -21,7 +21,11 @@ chown -R moviepilot:moviepilot \ /var/log/nginx chown moviepilot:moviepilot /etc/hosts /tmp # 下载浏览器内核 -HTTPS_PROXY="${HTTPS_PROXY:-${https_proxy:-$PROXY_HOST}}" gosu moviepilot:moviepilot playwright install chromium +if [[ "$HTTPS_PROXY" =~ ^https?:// ]] || [[ "$https_proxy" =~ ^https?:// ]] || [[ "$PROXY_HOST" =~ ^https?:// ]]; then + HTTPS_PROXY="${HTTPS_PROXY:-${https_proxy:-$PROXY_HOST}}" gosu moviepilot:moviepilot playwright install chromium +else + gosu moviepilot:moviepilot playwright install chromium +fi # 启动前端nginx服务 nginx # 启动docker http proxy nginx