mirror of https://github.com/gogits/gogs.git
Michael Li
6 years ago
3 changed files with 62 additions and 0 deletions
@ -0,0 +1,19 @@
|
||||
#!/bin/sh |
||||
# Finalize the build |
||||
|
||||
set -x |
||||
set -e |
||||
|
||||
# Create git user for Gogs |
||||
addgroup -S git |
||||
adduser -G git -H -D -g 'Gogs Git User' git -h /data/git -s /bin/bash && usermod -p '*' git && passwd -u git |
||||
echo "export GOGS_CUSTOM=${GOGS_CUSTOM}" >> /etc/profile |
||||
|
||||
# Final cleaning |
||||
rm /app/gogs/docker/build.sh |
||||
rm /app/gogs/docker/build-go.sh |
||||
rm /app/gogs/docker/finalize.sh |
||||
rm /app/gogs/docker/finalize-docker-ce.sh |
||||
rm /app/gogs/docker/nsswitch.conf |
||||
rm /app/gogs/docker/README.md |
||||
|
Loading…
Reference in new issue