mirror of
https://github.com/linuxserver/docker-baseimage-alpine.git
synced 2026-02-20 00:47:04 +08:00
adding universal umask setting using an contenv wrapper
This commit is contained in:
parent
ca312610e3
commit
b158c2e0d6
@ -60,6 +60,7 @@ RUN \
|
||||
bash \
|
||||
ca-certificates \
|
||||
coreutils \
|
||||
procps \
|
||||
shadow \
|
||||
tzdata && \
|
||||
echo "**** add s6 overlay ****" && \
|
||||
@ -76,6 +77,7 @@ RUN \
|
||||
/app \
|
||||
/config \
|
||||
/defaults && \
|
||||
mv /usr/bin/with-contenv /usr/bin/with-contenvb && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
|
||||
@ -60,6 +60,7 @@ RUN \
|
||||
bash \
|
||||
ca-certificates \
|
||||
coreutils \
|
||||
procps \
|
||||
shadow \
|
||||
tzdata && \
|
||||
echo "**** add s6 overlay ****" && \
|
||||
@ -76,6 +77,7 @@ RUN \
|
||||
/app \
|
||||
/config \
|
||||
/defaults && \
|
||||
mv /usr/bin/with-contenv /usr/bin/with-contenvb && \
|
||||
echo "**** add qemu ****" && \
|
||||
curl -o \
|
||||
/usr/bin/qemu-aarch64-static -L \
|
||||
|
||||
@ -60,6 +60,7 @@ RUN \
|
||||
bash \
|
||||
ca-certificates \
|
||||
coreutils \
|
||||
procps \
|
||||
shadow \
|
||||
tzdata && \
|
||||
echo "**** add s6 overlay ****" && \
|
||||
@ -76,6 +77,7 @@ RUN \
|
||||
/app \
|
||||
/config \
|
||||
/defaults && \
|
||||
mv /usr/bin/with-contenv /usr/bin/with-contenvb && \
|
||||
echo "**** add qemu ****" && \
|
||||
curl -o \
|
||||
/usr/bin/qemu-arm-static -L \
|
||||
|
||||
7
root/usr/bin/with-contenv
Executable file
7
root/usr/bin/with-contenv
Executable file
@ -0,0 +1,7 @@
|
||||
#! /bin/bash
|
||||
if [[ -f /var/run/s6/container_environment/UMASK ]] && [[ "$(pwdx $$)" =~ "/run/s6/services/" ]]; then
|
||||
umask $(cat /var/run/s6/container_environment/UMASK)
|
||||
/usr/bin/with-contenvb "$@"
|
||||
else
|
||||
/usr/bin/with-contenvb "$@"
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user