Initial commit of sharable config
This commit is contained in:
8
lidarr/bin/with-contenv
Executable file
8
lidarr/bin/with-contenv
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/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 "$@"
|
||||
Reference in New Issue
Block a user