mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-22 06:34:21 +00:00
Fix curl usage for knockd install (#2027)
This commit is contained in:
1 parent
e7084c233e
commit
f1aad07804
3 files changed
+7
-6
No files matched your search
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
apk add --no-cache -U \
|
apk add --no-cache -U \
|
||||||
openssl \
|
openssl \
|
||||||
@@ -27,6 +28,6 @@ apk add --no-cache -U \
|
|||||||
libpcap
|
libpcap
|
||||||
|
|
||||||
# Patched knockd
|
# Patched knockd
|
||||||
curl -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-alpine-amd64.tar.gz
|
curl -fsSL -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-alpine-amd64.tar.gz
|
||||||
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
|
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
|
||||||
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
|
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
export TARGET
|
export TARGET
|
||||||
|
|
||||||
set -e
|
set -euo pipefail
|
||||||
|
|
||||||
microdnf install dnf -y
|
microdnf install dnf -y
|
||||||
|
|
||||||
@@ -40,6 +40,6 @@ dnf install -y ImageMagick \
|
|||||||
bash /build/ol/install-gosu.sh
|
bash /build/ol/install-gosu.sh
|
||||||
|
|
||||||
# Patched knockd
|
# Patched knockd
|
||||||
curl -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-$TARGET.tar.gz
|
curl -fsSL -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-$TARGET.tar.gz
|
||||||
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
|
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
|
||||||
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
|
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
export TARGET
|
export TARGET
|
||||||
|
|
||||||
set -e
|
set -euo pipefail
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ apt-get install -y \
|
|||||||
apt-get clean
|
apt-get clean
|
||||||
|
|
||||||
# Patched knockd
|
# Patched knockd
|
||||||
curl -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-$TARGET.tar.gz
|
curl -fsSL -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-$TARGET.tar.gz
|
||||||
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
|
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
|
||||||
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
|
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
|
||||||
find /usr/lib -name 'libpcap.so.0.8' -execdir cp '{}' libpcap.so.1 \;
|
find /usr/lib -name 'libpcap.so.0.8' -execdir cp '{}' libpcap.so.1 \;
|
||||||
Reference in new issue
Block a user