From f764a680737f45ebc6582bf3a6e5fcd2524f7d53 Mon Sep 17 00:00:00 2001 From: coolaj86 Date: Sat, 28 Oct 2017 00:13:57 +0000 Subject: [PATCH] Update 'README.md' --- README.md | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4cbc8dc..e327de0 100644 --- a/README.md +++ b/README.md @@ -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 +``` \ No newline at end of file