more setup fixes

This commit is contained in:
David Blacka 2023-02-28 17:32:28 -05:00
parent 6dafbf8f91
commit b97136ee5c

View File

@ -2,11 +2,12 @@
GITEA_HOME=/var/lib/gitea 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 HOST_GIT_USER=git # this will be the user in the ssh git urls, e.g. git@blacka.com/org/repo.git
UID=895
# create the 'gitea' user to run and own this thing # create the 'gitea' user to run and own this thing
if ! id -u 985 >/dev/null 2>&1; then if ! id -u "$UID" >/dev/null 2>&1; then
groupadd -g 895 "$HOST_GIT_USER" groupadd -g "$UID" "$HOST_GIT_USER"
useradd -u 895 -g "$HOST_GIT_USER" -G docker -d "$GITEA_HOME" -m gitea useradd -u "$UID" -g "$HOST_GIT_USER" -G docker -d "$GITEA_HOME" -m gitea
fi fi
install -d "$GITEA_HOME/data" install -d "$GITEA_HOME/data"