#!/bin/bash sudo wget -O /usr/local/bin/gitea https://dl.gitea.io/gitea/1.17.3/gitea-1.17.3-linux-amd64 sudo chmod +x /usr/local/bin/gitea sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git sudo mkdir -pv /var/lib/gitea/{custom,data,log} sudo chown -Rv git:git /var/lib/gitea sudo chmod -Rv 750 /var/lib/gitea sudo chown -Rv root:git /etc/gitea sudo mkdir -v /etc/gitea sudo chmod -Rv 770 /etc/gitea wget -O /etc/systemd/system/gitea.service https://git.oldgate.org/Sophia/thelinuxlist/raw/branch/main/systemd/gitea.service sudo systemctl enable --now gitea sudo systemctl start gitea sleep 3 sudo systemctl status gitea