Skip to content

Commit

Permalink
chown knockd to minecraft user
Browse files Browse the repository at this point in the history
  • Loading branch information
itzg committed Oct 10, 2023
1 parent 6fce520 commit c3ccdca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ ARG TARGETARCH
ARG TARGETVARIANT

RUN --mount=target=/build,source=build \
TARGET=${TARGETARCH}${TARGETVARIANT} /build/run.sh install-packages
/build/run.sh setup-user

RUN --mount=target=/build,source=build \
/build/run.sh setup-user
TARGET=${TARGETARCH}${TARGETVARIANT} /build/run.sh install-packages

COPY --chmod=644 files/sudoers* /etc/sudoers.d

Expand Down
1 change: 1 addition & 0 deletions build/alpine/install-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ curl -fsSL -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/down
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
setcap cap_net_raw=ep /usr/local/sbin/knockd
chown minecraft /usr/local/sbin/knockd
1 change: 1 addition & 0 deletions build/ol/install-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ curl -fsSL -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/down
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
setcap cap_net_raw=ep /usr/local/sbin/knockd
chown minecraft /usr/local/sbin/knockd
1 change: 1 addition & 0 deletions build/ubuntu/install-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ curl -fsSL -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/down
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
setcap cap_net_raw=ep /usr/local/sbin/knockd
chown minecraft /usr/local/sbin/knockd
find /usr/lib -name 'libpcap.so.0.8' -execdir cp '{}' libpcap.so.1 \;

0 comments on commit c3ccdca

Please sign in to comment.