gitea installer

This Bash script can be used to automatically install and deploy gitea to a Debian or Ubuntu machine. You should use this on a freshly set up machine, as it will clobber a bunch of stuff.

If you do this on a cloud provider, you shouldn't have to pay more than about $5 (USD, 2021) per month for hosting, which is about the price of a Github account with private repos.

You should read through all of the relevant .sh files before running this script, unless you trust me a great deal, which you should not.

How To Install

The easiest way to install this is to run the following command at the command line on the target machine in a throwaway directory:

wget -O install.sh https://8u2n.net/gitea-installer/install.sh && bash install.sh

This assumes you already have wget installed, which is often true. If you don't, however, simply download installer.sh to a directory of your choice and then from that directory run

bash installer.sh

The installer will prompt you for a domain name. This should be the domain name that you want to host your gitea instance. For example, if you want to have gitea located at `git.example.net`, you would enter that domain name. You can also use an IP address. But do not give something with /'s (so no `https://`), just the domain name.

The installer will then install whatever dependencies it needs to, possibly including wget, git, gitea itself, and caddy. The other dependencies (bash, cat, sed, systemd) are expected to already be installed, as they're part of any standard Debian install.

Testing

The installer has been tested on 2021-01-17, and is known to behave on fresh versions of the following setups in the following ways:

Setup Status
Digital Ocean Debian 9 x64 Works
Digital Ocean Debian 10 x64 Works
Digital Ocean Ubuntu 18.04 (LTS) x64 Works
Digital Ocean Ubuntu 20.04 (LTS) x64 Works
Digital Ocean Ubuntu 20.10 x64 Works