finalize.sh 454 B

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