1
0
mirror of https://gitlab.com/packaging/gitea synced 2024-12-18 08:03:29 +00:00
gitea_packaging/.packaging/before-install.sh

15 lines
308 B
Bash
Raw Normal View History

2020-04-12 11:43:49 +00:00
# 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 \
2020-04-12 11:43:49 +00:00
gitea
if [ ! -d /etc/gitea ]; then
install -d -o gitea -g gitea -m 770 /etc/gitea
fi