finalize.sh 393 B

12345678910111213141516
  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/finalize.sh
  12. rm /app/gogs/docker/nsswitch.conf
  13. rm /app/gogs/docker/README.md