mirror of
https://github.com/LacledesLAN/gamesvr-ut99.git
synced 2025-02-23 17:10:50 +01:00
modify hash check
This commit is contained in:
parent
ffe60ee693
commit
368601a5b9
@ -5,14 +5,31 @@ FROM $CONTAINER_REGISTRY/lacledeslan/steamcmd:linux as ut99-builder
|
||||
|
||||
ARG contentServer=content.lacledeslan.net
|
||||
|
||||
RUN echo "Downloading UT99 Dedicated Server Assets" &&`
|
||||
mkdir --parents /tmp/ &&`
|
||||
curl -sSL "http://${contentServer}/fastDownloads/_installers/uts99/ut99-oldunreal-469e-rc7-linux-amd64.7z" -o /tmp/ut99-server.7z &&`
|
||||
echo "Validating download against known hash" &&`
|
||||
expected_hash="55f7d9e99b8e2d4e0e193b2f0275501e6d9c1ebd29cadbea6a0da48a8587e3e0" &&`
|
||||
calculated_hash=$(sha256sum /tmp/ut99-server.7z | awk '{print $1}') &&`
|
||||
if [ "$calculated_hash" != "$expected_hash" ]; then `
|
||||
echo "Hash mismatch!" `
|
||||
echo "Calculated SHA-256 hash: $calculated_hash" `
|
||||
else `
|
||||
echo "Hash matches the expected value." `
|
||||
fi &&`
|
||||
echo "Extracting UT99 Dedicated Server Assets" &&`
|
||||
7z x -o/output/ /tmp/ut99-server.7z &&`
|
||||
rm -f;
|
||||
|
||||
|
||||
RUN echo "Downloading UT99 Dedicated Server Assets" &&`
|
||||
mkdir --parents /tmp/ &&`
|
||||
curl -sSL "http://${contentServer}/fastDownloads/_installers/uts99/ut99-oldunreal-469e-rc7-linux-amd64.7z" -o /tmp/ut99-server.7z &&`
|
||||
curl -sSL "http://${contentServer}/fastDownloads/_installers/uts99/ut99-oldunreal-469e-rc7-linux-amd64.7z" -o /tmp/ut99-server.7z &&`
|
||||
echo "Validating download against known hash" &&`
|
||||
echo "55f7d9e99b8e2d4e0e193b2f0275501e6d9c1ebd29cadbea6a0da48a8587e3e0 /tmp/ut99-server.7z" | sha256sum -c - &&`
|
||||
echo "Extracting UT99 Dedicated Server Assets" &&`
|
||||
7z x -o/output/ /tmp/ut99-server.7z &&`
|
||||
rm -f /tmp/*.7z
|
||||
echo "Extracting UT99 Dedicated Server Assets" &&`
|
||||
7z x -o/output/ /tmp/ut99-server.7z &&`
|
||||
rm -f /tmp/*.7z
|
||||
|
||||
#=======================================================================
|
||||
FROM debian:bookworm-slim
|
||||
|
Loading…
x
Reference in New Issue
Block a user