From 7bc8a47bd36b240c328ea27182fbfe605e2417bf Mon Sep 17 00:00:00 2001 From: Maple Gao Date: Thu, 10 Jul 2025 11:09:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20=20chore:=20fix=20Relay=20Mode?= =?UTF-8?q?=20mis-report=20*=20fix:=20Relay=20mode=20should=20check=20loca?= =?UTF-8?q?lhost=20under=20network=5Fmode:=20service:network-service=20its?= =?UTF-8?q?elf,=20but=20if=20failed,=20should=20notice=20user=20check=20re?= =?UTF-8?q?lay=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose/local/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose/local/docker-compose.yml b/docker-compose/local/docker-compose.yml index 30ae273aae..ed2bd11f81 100644 --- a/docker-compose/local/docker-compose.yml +++ b/docker-compose/local/docker-compose.yml @@ -126,7 +126,7 @@ services: /bin/node /app/startServer.js & LOBE_PID=\$! sleep 3 - if [ $(wget --timeout=5 --spider --server-response ${AUTH_CASDOOR_ISSUER}/.well-known/openid-configuration 2>&1 | grep -c 'HTTP/1.1 200 OK') -eq 0 ]; then + if [ $(wget --timeout=5 --spider --server-response ${AUTH_CASDOOR_ISSUER}/.well-known/openid-configuration 2>&1 | grep -E -c 'HTTP/[0-9.]+ 200') -eq 0 ]; then echo '⚠️Warning: Unable to fetch OIDC configuration from Casdoor' echo 'Request URL: ${AUTH_CASDOOR_ISSUER}/.well-known/openid-configuration' echo 'Read more at: https://lobehub.com/docs/self-hosting/server-database/docker-compose#necessary-configuration' @@ -149,7 +149,7 @@ services: echo '' fi fi - if [ $(wget --timeout=5 --spider --server-response ${S3_ENDPOINT}/minio/health/live 2>&1 | grep -c 'HTTP/1.1 200 OK') -eq 0 ]; then + if [ $(wget --timeout=5 --spider --server-response ${S3_ENDPOINT}/minio/health/live 2>&1 | grep -E -c 'HTTP/[0-9.]+ 200') -eq 0 ]; then echo '⚠️Warning: Unable to fetch MinIO health status' echo 'Request URL: ${S3_ENDPOINT}/minio/health/live' echo 'Read more at: https://lobehub.com/docs/self-hosting/server-database/docker-compose#necessary-configuration'