mirror of
https://git.coolaj86.com/coolaj86/gitea-installer.sh.git
synced 2024-12-22 06:15:41 +00:00
Update 'README.md'
This commit is contained in:
parent
4996f44e52
commit
f764a68073
31
README.md
31
README.md
@ -4,11 +4,18 @@ Installs Gitea as a systemd service
|
|||||||
|
|
||||||
# Linux
|
# Linux
|
||||||
|
|
||||||
Just follow these instructions:
|
You can download and run the installer script:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Create a 'gitea' user and group with the home /opt/gitea
|
wget -O install-gitea.bash https://git.coolaj86.com/coolaj86/gitea-installer/raw/master/install.bash
|
||||||
sudo adduser gitea --home /opt/gitea
|
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
|
# Make some other potentially useful directories for that user/group
|
||||||
sudo mkdir -p /opt/gitea/ /var/log/gitea
|
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
|
# 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 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
|
# 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
|
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
|
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.
|
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
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user