From c9eb7e8c08bfe4120fe3c788523477d7f641ace6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com> Date: Sun, 16 Aug 2026 00:15:35 +0800 Subject: [PATCH] fix(guanghu-os): use direct Forgejo shadow routes --- .../guanghu-os/scripts/forgejo-repository-shadow-backend.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product-source/hololake-platform/guanghu-os/scripts/forgejo-repository-shadow-backend.sh b/product-source/hololake-platform/guanghu-os/scripts/forgejo-repository-shadow-backend.sh index 162a67739..342031cbb 100755 --- a/product-source/hololake-platform/guanghu-os/scripts/forgejo-repository-shadow-backend.sh +++ b/product-source/hololake-platform/guanghu-os/scripts/forgejo-repository-shadow-backend.sh @@ -64,7 +64,7 @@ fi pid_file=${work_path}/forgejo-shadow.pid readback_file=${work_path}/${4}.main -url=http://127.0.0.1:${http_port}/code/${repository_owner}/${repository_name}.git +url=http://127.0.0.1:${http_port}/${repository_owner}/${repository_name}.git process_alive() { [[ -s ${pid_file} ]] || return 1 @@ -73,7 +73,7 @@ process_alive() { } observe() { - if process_alive && curl -fsS --max-time 2 "http://127.0.0.1:${http_port}/code/api/v1/version" >/dev/null; then + if process_alive && curl -fsS --max-time 2 "http://127.0.0.1:${http_port}/api/v1/version" >/dev/null; then echo ready else echo dormant