1
0
mirror of https://gitlab.com/packaging/gitea synced 2024-12-18 16:13:44 +00:00
gitea_packaging/package_scripts/after-install.sh

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