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