baseimage-alpine/root/usr/bin/with-contenv
Eric Nemchik a17efd1df9
Update s6-overlay to v3.1.0.1 for 3.15 (#93)
Co-authored-by: TheSpad <git@spad.co.uk>
2022-07-10 21:53:19 +01:00

10 lines
329 B
Bash
Executable file

#! /bin/bash
if [[ -f /var/run/s6/container_environment/UMASK ]] && \
{ [[ "$(pwdx $$)" =~ "/run/s6/legacy-services/" ]] || \
[[ "$(pwdx $$)" =~ "/run/s6/services/" ]] || \
[[ "$(pwdx $$)" =~ "/servicedirs/svc-" ]]; }; then
umask $(cat /var/run/s6/container_environment/UMASK)
fi
exec /command/with-contenv "$@"