Gitea install

From SME Server
Revision as of 07:27, 19 March 2023 by TrevorB (talk | contribs) (Install Gitea on your smeserver)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is how I installed the latest version of Gitea (https://gitea.io)

Note: That there is a smeserver contrib for Git and gitweb, but I did not use these as they only provide older versions of git, whereas we wanted the latest versions for use with gitea

export GITVER=2.39.1-1 wget http://opensource.wandisco.com/centos/7/git/x86_64/git-${GITVER}.WANdisco.x86_64.rpm wget http://opensource.wandisco.com/centos/7/git/x86_64/perl-Git-${GITVER}.WANdisco.noarch.rpm yum localinstall git-${GITVER}.WANdisco.x86_64.rpm perl-Git-${GITVER}.WANdisco.noarch.rpm export GITEAVER=1.18.5 wget https://github.com/go-gitea/gitea/releases/download/v${GITEAVER}/gitea-${GITEAVER}-linux-amd64 -O /usr/local/bin/gitea chmod +x /usr/local/bin/gitea useradd git mkdir -p /etc/gitea /var/lib/gitea/{custom,data,indexers,public,log} chown git:git /var/lib/gitea/{data,indexers,log} chmod 750 /var/lib/gitea/{data,indexers,log} chown root:git /etc/gitea chmod 770 /etc/gitea nano /etc/systemd/system/gitea.service.d/50koozali.conf config set gitea service status enabled systemctl start gitea nano /etc/gitea/app.ini # check/amend ROOT_URL systemctl restart gitea systemctl status gitea cd /var/lib/gitea/data/gitea-repositories