mirror of
https://github.com/linuxserver/docker-baseimage-fedora.git
synced 2026-02-06 04:37:22 +08:00
Fix umask handling
This commit is contained in:
parent
c6f7d64fbe
commit
eacc4941d8
@ -1,7 +1,9 @@
|
||||
#! /bin/bash
|
||||
if [[ -f /var/run/s6/container_environment/UMASK ]] && [[ "$(pwdx $$)" =~ "/run/s6/services/" ]]; then
|
||||
umask $(cat /var/run/s6/container_environment/UMASK)
|
||||
exec /command/with-contenv "$@"
|
||||
else
|
||||
exec /command/with-contenv "$@"
|
||||
|
||||
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 "$@"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user