2022-02-12 03:00:24 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
2023-03-22 01:12:21 +00:00
|
|
|
set -o pipefail
|
2022-02-12 03:00:24 +00:00
|
|
|
|
|
|
|
apk add --no-cache -U \
|
|
|
|
openssl \
|
|
|
|
imagemagick \
|
|
|
|
file \
|
|
|
|
lsof \
|
|
|
|
su-exec \
|
|
|
|
coreutils \
|
|
|
|
findutils \
|
2022-02-14 00:02:09 +00:00
|
|
|
procps \
|
2022-02-12 03:00:24 +00:00
|
|
|
shadow \
|
|
|
|
bash \
|
|
|
|
curl iputils \
|
|
|
|
git \
|
|
|
|
jq \
|
|
|
|
mysql-client \
|
|
|
|
tzdata \
|
|
|
|
rsync \
|
|
|
|
nano \
|
|
|
|
sudo \
|
|
|
|
tar \
|
2022-11-27 03:49:21 +00:00
|
|
|
zstd \
|
2023-03-12 18:40:35 +00:00
|
|
|
nfs-utils \
|
2023-05-03 14:00:27 +00:00
|
|
|
libpcap \
|
2024-02-03 04:23:07 +00:00
|
|
|
libwebp \
|
|
|
|
libcap-utils
|
2023-03-21 18:37:55 +00:00
|
|
|
|
|
|
|
# Patched knockd
|
2023-03-22 01:12:21 +00:00
|
|
|
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
|
2023-03-21 18:37:55 +00:00
|
|
|
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
|
|
|
|
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
|
2024-02-03 04:23:07 +00:00
|
|
|
setcap cap_net_raw=ep /usr/local/sbin/knockd
|