git://blacka.com
/
docker_gitea.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3876fd6
)
another tweak
author
David Blacka
<david@blacka.com>
Tue, 28 Feb 2023 22:37:20 +0000
(17:37 -0500)
committer
David Blacka
<david@blacka.com>
Tue, 28 Feb 2023 22:37:20 +0000
(17:37 -0500)
setup.sh
patch
|
blob
|
history
diff --git
a/setup.sh
b/setup.sh
index
dd46c29
..
7f9cedc
100755
(executable)
--- a/
setup.sh
+++ b/
setup.sh
@@
-2,12
+2,14
@@
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
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_GROUP=gitea
HOST_GIT_UID=895
HOST_GIT_UID=895
-# create the 'gitea' user to run and own this thing
+# create the 'git:gitea' user to run and own this thing
+# Note we want 'git' as the user, since every other git hosting system uses that
if ! id -u "$HOST_GIT_UID" >/dev/null 2>&1; then
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
+ groupadd -g "$HOST_GIT_UID" "$HOST_GIT_
GROUP
"
+ useradd -u "$HOST_GIT_UID" -g "$HOST_GIT_USER" -G docker -d "$GITEA_HOME" -m
"$HOST_GIT_USER"
fi
install -d "$GITEA_HOME/data"
fi
install -d "$GITEA_HOME/data"