Skip to content

Commit

Permalink
Do not include PATH in container_environment
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Bercot <ska@appnovation.com>
  • Loading branch information
skarnet committed Jan 26, 2022
1 parent d480b99 commit 77f802c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ fi

s6-linux-init-maker -NC -D top -c "$basedir" -p "$PATH" -f /package/admin/s6-overlay-@VERSION@/etc/s6-linux-init/skel $stampopt $dumpopt $logopt $loguseropt $graceopt $syncopt -- "$basedir"

if test -z "$dumpopt" ; then
if test -n "$dumpopt" ; then
s6-rmrf /run/s6/container_environment/PATH
else
s6-rename "$basedir/env" "$basedir/env.orig"
s6-dumpenv "$basedir/env"
s6-rmrf "$basedir/env/PATH"
for file in `s6-ls "$basedir/env.orig"` ; do
s6-hiercopy "$basedir/env.orig/$file" "$basedir/env/$file"
done
Expand Down

0 comments on commit 77f802c

Please sign in to comment.