add exec to with-contenv wrapper

This commit is contained in:
aptalca 2020-05-31 21:49:45 -04:00 committed by Ryan Kuba
parent 8c74607acc
commit 95a775a423

View file

@ -1,7 +1,7 @@
#! /bin/bash
if [[ -f /var/run/s6/container_environment/UMASK ]] && [[ "$(pwdx $$)" =~ "/run/s6/services/" ]]; then
umask $(cat /var/run/s6/container_environment/UMASK)
/usr/bin/with-contenvb "$@"
exec /usr/bin/with-contenvb "$@"
else
/usr/bin/with-contenvb "$@"
exec /usr/bin/with-contenvb "$@"
fi