Add information on Gitea 1.19.1 upgrade

This commit is contained in:
James Skemp 2023-04-17 11:59:19 -05:00
parent 0050b995ca
commit ddf7d8b589
2 changed files with 20 additions and 1 deletions

View File

@ -203,7 +203,7 @@ PASSWD = `password`
REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = indexers/repos.bleve
MAX_FILE_SIZE = 1048576
REPO_INDEXER_INCLUDE = **.cs,**.html,**.md,**.ts,**.txt
REPO_INDEXER_INCLUDE = **.cfm,**.cs,**.go,**.htm,**.html,**.js,**.md,**.ts,**.txt,**go.mod
REPO_INDEXER_EXCLUDE =
```

View File

@ -199,3 +199,22 @@ Updates came pretty fast, so I ran all three of these one after the other.
1. Remove `UPDATE_BUFFER_LEN` from `[indexer]`.
2. If not the default of 20 (https://docs.gitea.io/en-us/config-cheat-sheet/#queue-queue-and-queue), follow the message to set the correct length property.
- In my case I had the default of 20, so I dropped it entirely.
## Updating 1.19.0 to 1.19.1
1. `sudo systemctl stop gitea`
2. `sudo su - git`
3. `gitea dump -c /etc/gitea/app.ini -w /var/lib/gitea -t /tmp`
4. `ls -l --block-size=M`
- `rm <old-backup-file>`
- `chmod a=r <new-backup-file>`
5. `exit`
6. `VERSION=1.19.1`
7. `sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64`
8. `sudo systemctl status gitea`
- Should be inactive/dead.
9. `sudo mv gitea /usr/local/bin/gitea`
10. `sudo chmod +x /usr/local/bin/gitea`
11. `sudo systemctl restart gitea`
12. `sudo systemctl status gitea`
- Should be active (running).
13. After some period of time, delete the backup file.