docker_gitea/setup.sh

12 lines
244 B
Bash
Raw Normal View History

2023-02-28 20:43:05 +00:00
#! /bin/bash
GITEA_HOME=/var/lib/gitea
# create the 'gitea' user to run and own this thing
if ! id -u 985 >/dev/null 2>&1; then
groupadd -g 895 gitea
useradd -u 895 -g gitea -d "$GITEA_HOME" -m gitea
fi
install -d "$GITEA_HOME/data"