Merge pull request #58 from linuxserver/umask-focal
add wrapper script to set umask on downstream imagespull/61/head
commit
f10e3af377
|
@ -99,6 +99,7 @@ RUN \
|
|||
/app \
|
||||
/config \
|
||||
/defaults && \
|
||||
mv /usr/bin/with-contenv /usr/bin/with-contenvb && \
|
||||
echo "**** cleanup ****" && \
|
||||
apt-get clean && \
|
||||
rm -rf \
|
||||
|
|
|
@ -99,6 +99,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 \
|
||||
|
|
|
@ -99,6 +99,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 \
|
||||
|
|
|
@ -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)
|
||||
exec /usr/bin/with-contenvb "$@"
|
||||
else
|
||||
exec /usr/bin/with-contenvb "$@"
|
||||
fi
|
Ładowanie…
Reference in New Issue