1
0
mirror of https://gitlab.com/packaging/gitea synced 2024-12-18 08:03:29 +00:00
gitea_packaging/.packaging/before-install.sh
morph027 3a7165778a
add arm64 builds, refs #5
Signed-off-by: morph027 <stefan.heitmueller@gmx.com>
2022-01-17 08:55:54 +01:00

15 lines
308 B
Bash

# https://docs.gitea.io/en-us/install-from-binary/
getent passwd gitea >/dev/null 2>&1 || adduser \
--system \
--shell /bin/bash \
--gecos 'Gitea' \
--group \
--disabled-password \
--home /var/lib/gitea \
gitea
if [ ! -d /etc/gitea ]; then
install -d -o gitea -g gitea -m 770 /etc/gitea
fi