소스 검색

Make container environment accessible to everyone

Signed-off-by: Laurent Bercot <[email protected]>
Laurent Bercot 3 년 전
부모
커밋
f565afc1b8
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      layout/rootfs-overlay/package/admin/s6-overlay-@VERSION@/etc/s6-linux-init/skel/rc.init

+ 4 - 0
layout/rootfs-overlay/package/admin/s6-overlay-@VERSION@/etc/s6-linux-init/skel/rc.init

@@ -2,6 +2,10 @@
 
 
 top="$1" ; shift
 top="$1" ; shift
 
 
+if test -d /run/s6/container_environment ; then
+  s6-chmod 0755 /run/s6/container_environment
+fi
+
 if profile=`printcontenv S6_RUNTIME_PROFILE` ; then
 if profile=`printcontenv S6_RUNTIME_PROFILE` ; then
   etc="/etc/cont-profile.d/$profile"
   etc="/etc/cont-profile.d/$profile"
 else
 else