Skip to content
Snippets Groups Projects
Commit 97c0c67b authored by Eric Nemchik's avatar Eric Nemchik
Browse files

add wrapper script to set umask on downstream images

Ref: 92c6e348cffd05ff4fd78c038f43877e7886ff85
parent 694e8f2e
No related branches found
No related tags found
No related merge requests found
...@@ -99,6 +99,7 @@ RUN \ ...@@ -99,6 +99,7 @@ RUN \
/app \ /app \
/config \ /config \
/defaults && \ /defaults && \
mv /usr/bin/with-contenv /usr/bin/with-contenvb && \
echo "**** cleanup ****" && \ echo "**** cleanup ****" && \
apt-get clean && \ apt-get clean && \
rm -rf \ rm -rf \
......
...@@ -99,6 +99,7 @@ RUN \ ...@@ -99,6 +99,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 \
......
...@@ -99,6 +99,7 @@ RUN \ ...@@ -99,6 +99,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 \
......
#! /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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment