Unverified Commit ca60f4ec authored by boklm's avatar boklm
Browse files

Add default user in LXC containers to the sudo group

It was done by vmbuilder before.
parent 4e8dd714
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ echo '127.0.1.1 gitian' >> /etc/hosts
# If LXC
if grep /lxc/gitian /proc/1/cgroup > /dev/null; then
  adduser --disabled-password --gecos ${DISTRIB_NAME,,} --quiet ${DISTRIB_NAME,,} || true
  adduser ${DISTRIB_NAME,,} sudo
  apt-get remove -y rsyslog || true
  dpkg-divert --local --rename --add /sbin/initctl
  ln -sf /bin/true /sbin/initctl