mirror of https://github.com/gogits/gogs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
454 B
18 lines
454 B
#!/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 -rf /app/gogs/build |
|
rm /app/gogs/docker/build.sh |
|
rm /app/gogs/docker/build-go.sh |
|
rm /app/gogs/docker/finalize.sh |
|
rm /app/gogs/docker/nsswitch.conf |
|
rm /app/gogs/docker/README.md
|
|
|