fix(guanghu-os): use direct Forgejo shadow routes
This commit is contained in:
parent
0d1ded1196
commit
c9eb7e8c08
1 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ fi
|
||||||
|
|
||||||
pid_file=${work_path}/forgejo-shadow.pid
|
pid_file=${work_path}/forgejo-shadow.pid
|
||||||
readback_file=${work_path}/${4}.main
|
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() {
|
process_alive() {
|
||||||
[[ -s ${pid_file} ]] || return 1
|
[[ -s ${pid_file} ]] || return 1
|
||||||
|
|
@ -73,7 +73,7 @@ process_alive() {
|
||||||
}
|
}
|
||||||
|
|
||||||
observe() {
|
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
|
echo ready
|
||||||
else
|
else
|
||||||
echo dormant
|
echo dormant
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue