Builder 654 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh -
  2. set -ex
  3. sed -i '/mount -t proc /d; /mount -t sysfs /d' /debootstrap/functions
  4. /debootstrap/debootstrap --second-stage
  5. apt-get update
  6. apt-get install -y \
  7. libglib2.0-0 \
  8. libxrandr2 \
  9. python-xvfbwrapper \
  10. ratpoison \
  11. sudo
  12. adduser --disabled-password --gecos 'Cryptech Build Bot' --shell /bin/sh builder
  13. echo >/etc/sudoers.d/builder 'builder ALL = (ALL) NOPASSWD: SETENV: ALL'
  14. install -o builder -g builder /cryptech-builder/Xilinx.lic /home/builder/Xilinx.lic
  15. ln -sf /bin/bash /bin/sh
  16. /cryptech-builder/Ratinox
  17. chown -R builder:builder /home/builder
  18. rm -rf /Xilinx_ISE_DS_Lin_14.7_1015_1 /home/builder/Xilinx.lic