mirror of
https://github.com/librespeed/speedtest.git
synced 2026-11-22 16:14:56 +00:00
Apply remaining changes
Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com>
This commit is contained in:
parent
5875d10b3f
commit
91e5d71c9d
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue