server-linux
server-linux copied to clipboard
Scripts don't support mirrors with https protocol in url
When selecting what mirror to choose the common pattern is like below, which won't match https. The installer automatically chooses another mirror when selecting a https one.
mirror=$(grep "^$number=[fhtp]\{3,4\}://[^ ]*$" nquake.ini | cut -d "=" -f2)
Should be as follows (s added to allowed chars and 5 instead of 4 max chars for protocol part)
mirror=$(grep "^$number=[fhtps]\{3,5\}://[^ ]*$" nquake.ini | cut -d "=" -f2)
Workaround is to define them as http as they will redirect to https anyway (can fix the script of course but for existing installations it's not really practical)