mirror of
https://github.com/linuxserver/docker-baseimage-arch.git
synced 2026-03-16 00:01:42 +08:00
10 lines
329 B
Bash
Executable File
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 "$@"
|