Compare commits
7 Commits
72fecacbd2
...
f256f5141f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f256f5141f | ||
|
|
93784d40e4 | ||
|
|
d7150db9b5 | ||
|
|
8c95c9816e | ||
|
|
2c2f292b5f | ||
|
|
bacf376179 | ||
|
|
e59cef676a |
@@ -13,11 +13,13 @@ ENV HOME="/config"
|
||||
# copy patches
|
||||
COPY patches/ /tmp/patches/
|
||||
|
||||
RUN apk add --no-cache musl=1.2.2-r9
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache \
|
||||
libcrypto1.1=1.1.1t-r1 \
|
||||
libssl1.1=1.1.1t-r1 \
|
||||
libcrypto1.1 \
|
||||
libssl1.1 \
|
||||
autoconf \
|
||||
automake \
|
||||
bsd-compat-headers \
|
||||
@@ -194,4 +196,4 @@ LABEL \
|
||||
org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \
|
||||
org.opencontainers.image.created=${BUILD_DATE} \
|
||||
org.opencontainers.image.revision=${BUILD_REF} \
|
||||
org.opencontainers.image.version=${BUILD_VERSION}
|
||||
org.opencontainers.image.version=${BUILD_VERSION}
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
FILES=$(find /dev/dri /dev/dvb -type c -print 2>/dev/null)
|
||||
|
||||
for i in $FILES
|
||||
do
|
||||
VIDEO_GID=$(stat -c '%g' "$i")
|
||||
if id -G abc | grep -qw "$VIDEO_GID"; then
|
||||
touch /groupadd
|
||||
else
|
||||
if [ ! "${VIDEO_GID}" == '0' ]; then
|
||||
VIDEO_NAME=$(getent group "${VIDEO_GID}" | awk -F: '{print $1}')
|
||||
if [ -z "${VIDEO_NAME}" ]; then
|
||||
VIDEO_NAME="video$(head /dev/urandom | tr -dc 'a-z0-9' | head -c8)"
|
||||
groupadd "$VIDEO_NAME"
|
||||
groupmod -g "$VIDEO_GID" "$VIDEO_NAME"
|
||||
fi
|
||||
usermod -a -G "$VIDEO_NAME" abc
|
||||
touch /groupadd
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "${FILES}" ] && [ ! -f "/groupadd" ]; then
|
||||
usermod -a -G root abc
|
||||
fi
|
||||
Reference in New Issue
Block a user