Apply remaining changes

Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-10-21 22:18:16 +00:00 • committed by GitHub
parent 5875d10b3f
commit 91e5d71c9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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