adding universal umask setting using an contenv wrapper
This commit is contained in:
parent
ca312610e3
commit
b158c2e0d6
|
|
@ -60,6 +60,7 @@ RUN \
|
||||||
bash \
|
bash \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
coreutils \
|
coreutils \
|
||||||
|
procps \
|
||||||
shadow \
|
shadow \
|
||||||
tzdata && \
|
tzdata && \
|
||||||
echo "**** add s6 overlay ****" && \
|
echo "**** add s6 overlay ****" && \
|
||||||
|
|
@ -76,6 +77,7 @@ RUN \
|
||||||
/app \
|
/app \
|
||||||
/config \
|
/config \
|
||||||
/defaults && \
|
/defaults && \
|
||||||
|
mv /usr/bin/with-contenv /usr/bin/with-contenvb && \
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
apk del --purge \
|
apk del --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,7 @@ RUN \
|
||||||
bash \
|
bash \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
coreutils \
|
coreutils \
|
||||||
|
procps \
|
||||||
shadow \
|
shadow \
|
||||||
tzdata && \
|
tzdata && \
|
||||||
echo "**** add s6 overlay ****" && \
|
echo "**** add s6 overlay ****" && \
|
||||||
|
|
@ -76,6 +77,7 @@ RUN \
|
||||||
/app \
|
/app \
|
||||||
/config \
|
/config \
|
||||||
/defaults && \
|
/defaults && \
|
||||||
|
mv /usr/bin/with-contenv /usr/bin/with-contenvb && \
|
||||||
echo "**** add qemu ****" && \
|
echo "**** add qemu ****" && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/usr/bin/qemu-aarch64-static -L \
|
/usr/bin/qemu-aarch64-static -L \
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,7 @@ RUN \
|
||||||
bash \
|
bash \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
coreutils \
|
coreutils \
|
||||||
|
procps \
|
||||||
shadow \
|
shadow \
|
||||||
tzdata && \
|
tzdata && \
|
||||||
echo "**** add s6 overlay ****" && \
|
echo "**** add s6 overlay ****" && \
|
||||||
|
|
@ -76,6 +77,7 @@ RUN \
|
||||||
/app \
|
/app \
|
||||||
/config \
|
/config \
|
||||||
/defaults && \
|
/defaults && \
|
||||||
|
mv /usr/bin/with-contenv /usr/bin/with-contenvb && \
|
||||||
echo "**** add qemu ****" && \
|
echo "**** add qemu ****" && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/usr/bin/qemu-arm-static -L \
|
/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…
Reference in a new issue