From 48c5d2b5acb666f757533af5d1baa379171f36af Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 26 Sep 2019 04:12:29 +0200 Subject: Use gogs user instead of git --- root/entrypoint | 3 +-- root/usr/bin/rungogs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'root') 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 diff --git a/root/usr/bin/rungogs b/root/usr/bin/rungogs index 0167152..3262726 100755 --- a/root/usr/bin/rungogs +++ b/root/usr/bin/rungogs @@ -1,3 +1,3 @@ #! /bin/sh -/app/gogs/gogs web +USER=gogs /app/gogs/gogs web -- cgit v1.2.3