Skip to content

Commit

Permalink
Use the latest user-agent from Google Chrome to resolve the file down…
Browse files Browse the repository at this point in the history
…load issue #1.
  • Loading branch information
fourdollars committed Sep 30, 2024
1 parent 5abc389 commit dfcc274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ RUN <<EOF
apt-get update
apt-get full-upgrade --yes
apt-get install --yes ca-certificates curl gnupg unzip
BEDROCK=$(curl -fsSL 'https://www.minecraft.net/en-us/download/server/bedrock' -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64)' | grep -o "https://.*/bin-linux/.*bedrock-server-.*.zip")
curl -sSL "${BEDROCK}" > bedrock-server.zip
BEDROCK=$(curl -fsSL 'https://www.minecraft.net/en-us/download/server/bedrock' -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36' | grep -o "https://.*/bin-linux/.*bedrock-server-.*.zip")
curl -fsSL "${BEDROCK}" -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36' --output bedrock-server.zip
unzip bedrock-server.zip
rm -f bedrock-server.zip bedrock_server_symbols.debug
mkdir -p /etc/apt/keyrings/
Expand Down

0 comments on commit dfcc274

Please sign in to comment.