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