finalize.sh 442 B

123456789101112131415161718
  1. #!/bin/sh
  2. # Finalize the build
  3. set -x
  4. set -e
  5. # Create git user for Gitote
  6. addgroup -S git
  7. adduser -G git -H -D -g 'Gitote Git User' git -h /data/git -s /bin/bash && usermod -p '*' git && passwd -u git
  8. echo "export GITOTE_CUSTOM=${GITOTE_CUSTOM}" >> /etc/profile
  9. # Final cleaning
  10. rm -rf /app/gitote/build
  11. rm /app/gitote/docker/build.sh
  12. rm /app/gitote/docker/build-go.sh
  13. rm /app/gitote/docker/finalize.sh
  14. rm /app/gitote/docker/nsswitch.conf