baseimage-alpine/root/usr/bin/with-contenv
2022-05-29 17:11:29 +01:00

8 lines
247 B
Bash
Executable file

#! /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 "$@"
fi