docker_gitea/setup.sh
2023-02-28 15:43:05 -05:00

12 lines
244 B
Bash
Executable File

#! /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"