#!/usr/bin/env bash set -ex adduser \ --system \ --shell /bin/bash \ --gecos 'Git Version Control' \ --group \ --disabled-password \ --home /home/git \ git mkdir /etc/gitea mv /tmp/app.ini /etc/gitea/app.ini chown -R root:git /etc/gitea chmod 770 /etc/gitea chmod 660 /etc/gitea/app.ini wget -O gitea https://dl.gitea.io/gitea/1.13.1/gitea-1.13.1-linux-amd64 chmod +x gitea mv gitea /usr/local/bin/ mv /tmp/gitea.service /etc/systemd/system/gitea.service systemctl enable gitea