mirror of
https://github.com/screentinker/screentinker.git
synced 2026-06-29 09:23:16 -06:00
fix(setup): poll /api/status (not /api/health) in the kiosk wait-loop
The server exposes /api/status, not /api/health — so the all-in-one kiosk "wait for server" loop never succeeded and burned the full timeout (~120s) before launching Chromium on every boot. Fixed in the new Debian script and the Raspberry Pi script it was based on. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7256fd0353
commit
d57d5ef591
|
|
@ -297,7 +297,7 @@ fi
|
||||||
if echo "\$KIOSK_URL" | grep -q "localhost"; then
|
if echo "\$KIOSK_URL" | grep -q "localhost"; then
|
||||||
echo "Waiting for ScreenTinker server..."
|
echo "Waiting for ScreenTinker server..."
|
||||||
for i in \$(seq 1 60); do
|
for i in \$(seq 1 60); do
|
||||||
if curl -sf "http://localhost:${SCREENTINKER_PORT}/api/health" >/dev/null 2>&1; then
|
if curl -sf "http://localhost:${SCREENTINKER_PORT}/api/status" >/dev/null 2>&1; then
|
||||||
echo "Server ready after \${i}x2s"
|
echo "Server ready after \${i}x2s"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -280,7 +280,7 @@ fi
|
||||||
if echo "\$KIOSK_URL" | grep -q "localhost"; then
|
if echo "\$KIOSK_URL" | grep -q "localhost"; then
|
||||||
echo "Waiting for ScreenTinker server..."
|
echo "Waiting for ScreenTinker server..."
|
||||||
for i in \$(seq 1 30); do
|
for i in \$(seq 1 30); do
|
||||||
if curl -sf "http://localhost:${SCREENTINKER_PORT}/api/health" >/dev/null 2>&1; then
|
if curl -sf "http://localhost:${SCREENTINKER_PORT}/api/status" >/dev/null 2>&1; then
|
||||||
echo "Server ready"
|
echo "Server ready"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue