Update 'README.md'

This commit is contained in:
coolaj86 2017-10-28 00:13:57 +00:00
parent 4996f44e52
commit f764a68073

View File

@ -4,11 +4,18 @@ Installs Gitea as a systemd service
# Linux
Just follow these instructions:
You can download and run the installer script:
```bash
# Create a 'gitea' user and group with the home /opt/gitea
sudo adduser gitea --home /opt/gitea
wget -O install-gitea.bash https://git.coolaj86.com/coolaj86/gitea-installer/raw/master/install.bash
bash install-gitea.bash
```
Or manually install by reading these instructions and following along:
```bash
# Create a 'gitea' user and group with the home /opt/gitea, no password (because it's a system user) and no GECOS
sudo adduser gitea --home /opt/gitea --disabled-password --gecos ''
# Make some other potentially useful directories for that user/group
sudo mkdir -p /opt/gitea/ /var/log/gitea
@ -16,7 +23,7 @@ sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea
# Download and install gitea
sudo wget -O /opt/gitea/gitea https://dl.gitea.io/gitea/1.0.1/gitea-1.0.1-linux-amd64
sudo chmod +x gitea
sudo chmod +x /opt/gitea/gitea
# Download and install the gitea.service for systemd
sudo wget -O /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer/raw/master/dist/etc/systemd/system/gitea.service
@ -84,3 +91,19 @@ If you copied a previous installation of gitea over to a new user, you may get t
I haven't yet found where it comes from, but deleting the repository in the UI and re-adding it seems to do the trick
from what I can tell. Remember to `git fetch --all` first before deleting.
## 203/EXEC
The downloaded gitea file is not executable
```
Oct 28 00:06:19 git-ldsconnect systemd[1]: gitea.service: Main process exited, code=exited, status=203/EXEC
Oct 28 00:06:19 git-ldsconnect systemd[1]: gitea.service: Unit entered failed state.
Oct 28 00:06:19 git-ldsconnect systemd[1]: gitea.service: Failed with result 'exit-code'.
```
Try this:
```bash
sudo chmod +x /opt/gitea/gitea
```