finalize.sh 452 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. # Finalize the build
  3. set -x
  4. set -e
  5. # Move to final place
  6. mv /app/gogs/build/gogs /app/gogs/
  7. mv /app/gogs/build/templates /app/gogs/
  8. mv /app/gogs/build/public /app/gogs/
  9. mv /app/gogs/build/docker /app/gogs/
  10. # Final cleaning
  11. rm -rf /app/gogs/build
  12. rm /app/gogs/docker/build.sh
  13. rm /app/gogs/docker/build-go.sh
  14. rm /app/gogs/docker/finalize.sh
  15. rm /app/gogs/docker/nsswitch.conf
  16. rm /app/gogs/docker/README.md
  17. rm -rf /tmp/go
  18. rm -rf /usr/local/go