summaryrefslogtreecommitdiffstats
path: root/root/entrypoint
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-26 04:12:29 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-26 04:12:29 +0200
commit48c5d2b5acb666f757533af5d1baa379171f36af (patch)
treeeafc22b834007bcbd86f337cdfe214ea7a23ed76 /root/entrypoint
parentedf770e69bd379ba29ce07b614549bfb6ffa3045 (diff)
downloadgogs-48c5d2b5acb666f757533af5d1baa379171f36af.tar.gz
gogs-48c5d2b5acb666f757533af5d1baa379171f36af.tar.bz2
gogs-48c5d2b5acb666f757533af5d1baa379171f36af.tar.xz
gogs-48c5d2b5acb666f757533af5d1baa379171f36af.zip
Use gogs user instead of git
Diffstat (limited to 'root/entrypoint')
-rwxr-xr-xroot/entrypoint3
1 files changed, 1 insertions, 2 deletions
diff --git a/root/entrypoint b/root/entrypoint
index 9845a77..3103845 100755
--- a/root/entrypoint
+++ b/root/entrypoint
@@ -1,12 +1,11 @@
#! /bin/sh
-export USER=git
export HOME=/data
export USER_ID=$(id -u)
export GROUP_ID=$(id -g)
grep -v ^git /etc/passwd > "$HOME/passwd"
-echo "git:x:${USER_ID}:${GROUP_ID}:gogs.io user:${HOME}:/bin/bash" >> "$HOME/passwd"
+echo "gogs:x:${USER_ID}:${GROUP_ID}:gogs.io user:${HOME}:/bin/bash" >> "$HOME/passwd"
cat "$HOME/passwd" > /etc/passwd
#No nss_wrapper in Alpine Linux yet