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