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:
b97136e
)
UID is specal
author
David Blacka
<david@blacka.com>
Tue, 28 Feb 2023 22:33:32 +0000
(17:33 -0500)
committer
David Blacka
<david@blacka.com>
Tue, 28 Feb 2023 22:33:32 +0000
(17:33 -0500)
setup.sh
patch
|
blob
|
history
diff --git
a/setup.sh
b/setup.sh
index
a7fcec1
..
dd46c29
100755
(executable)
--- 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
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
# 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"
fi
install -d "$GITEA_HOME/data"