Fix umask handling for v3
This commit is contained in:
parent
c758822c55
commit
92595b45d8
|
|
@ -1,7 +1,9 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
if [[ -f /var/run/s6/container_environment/UMASK ]] && [[ "$(pwdx $$)" =~ "/run/s6/services/" ]]; then
|
|
||||||
umask $(cat /var/run/s6/container_environment/UMASK)
|
if [[ -f /var/run/s6/container_environment/UMASK ]] && \
|
||||||
exec /command/with-contenv "$@"
|
{ [[ "$(pwdx $$)" =~ "/run/s6/legacy-services/" ]] || \
|
||||||
else
|
[[ "$(pwdx $$)" =~ "/run/s6/services/" ]] || \
|
||||||
exec /command/with-contenv "$@"
|
[[ "$(pwdx $$)" =~ "/servicedirs/svc-" ]]; }; then
|
||||||
|
umask $(cat /var/run/s6/container_environment/UMASK)
|
||||||
fi
|
fi
|
||||||
|
exec /command/with-contenv "$@"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue