fix(guanghu-os): use direct Forgejo shadow routes

This commit is contained in:
冰朔 2026-08-16 00:15:35 +08:00
commit c9eb7e8c08

View file

@ -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