fix: wait for imgproxy compat health on release

This commit is contained in:
john
2026-07-15 11:58:01 +08:00
parent 3695fecbb6
commit 07f1ad0a6e
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -54,4 +54,8 @@ launchctl bootout "$GUI/cn.tkmind.imgproxy-compat" 2>/dev/null || true
launchctl bootstrap "$GUI" "$PLIST"
launchctl enable "$GUI/cn.tkmind.imgproxy-compat"
launchctl kickstart -k "$GUI/cn.tkmind.imgproxy-compat"
for _ in $(seq 1 20); do
curl -fsS --max-time 2 http://10.10.0.2:20081/health >/dev/null && break
sleep 1
done
curl -fsS --max-time 3 http://10.10.0.2:20081/health >/dev/null