From 3876fd6802db7ec2ceda085a4ca92a1e4336127d Mon Sep 17 00:00:00 2001 From: David Blacka Date: Tue, 28 Feb 2023 17:33:32 -0500 Subject: [PATCH] UID is specal --- setup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index a7fcec1..dd46c29 100755 --- a/setup.sh +++ b/setup.sh @@ -2,12 +2,12 @@ GITEA_HOME=/var/lib/gitea HOST_GIT_USER=git # this will be the user in the ssh git urls, e.g. git@blacka.com/org/repo.git -UID=895 +HOST_GIT_UID=895 # create the 'gitea' user to run and own this thing -if ! id -u "$UID" >/dev/null 2>&1; then - groupadd -g "$UID" "$HOST_GIT_USER" - useradd -u "$UID" -g "$HOST_GIT_USER" -G docker -d "$GITEA_HOME" -m gitea +if ! id -u "$HOST_GIT_UID" >/dev/null 2>&1; then + groupadd -g "$HOST_GIT_UID" "$HOST_GIT_USER" + useradd -u "$HOST_GIT_UID" -g "$HOST_GIT_USER" -G docker -d "$GITEA_HOME" -m gitea fi install -d "$GITEA_HOME/data" -- 2.36.6