From 91e5d71c9d486291f14fb6b2d022f2406ef04792 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Oct 2026 22:18:16 +0000 Subject: [PATCH] Apply remaining changes Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> --- docker/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 8fe1987..de9b16f 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -91,6 +91,10 @@ if [[ "$MODE" == "frontend" || "$MODE" == "dual" || "$MODE" == "standalone" ]]; if [ -f /servers.json ]; then echo "using mounted /servers.json for server-list.json" cp /servers.json /var/www/html/server-list.json + if [ -z "$SERVER_LIST_URL" ]; then + # classic design ships with an empty (standalone) list, point it at the mounted one + sed -i "/var SPEEDTEST_SERVERS = \\[/,/^[[:space:]]*];/c\\\t\tvar SPEEDTEST_SERVERS = \"server-list.json\";" /var/www/html/index-classic.html + fi elif [ -n "$SERVER_LIST_URL" ]; then echo "no /servers.json found, relying on SERVER_LIST_URL" elif [ "$MODE" == "frontend" ]; then