Add Gitea 1.20.1 upgrade instructions

This commit is contained in:
James Skemp 2023-07-28 19:55:16 -05:00
parent fcf453fa91
commit c043dac2d8
1 changed files with 30 additions and 0 deletions

View File

@ -275,3 +275,33 @@ Updates came pretty fast, so I ran all three of these one after the other.
12. `sudo systemctl status gitea`
- Should be active (running).
13. After some period of time, delete the backup file.
## Updating 1.19.4 to 1.20.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.20.0`
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. Test the site.
14. `sudo systemctl stop gitea`
15. `VERSION=1.20.1`
16. `sudo wget -O gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64`
17. `sudo systemctl status gitea`
- Should be inactive/dead.
18. `sudo mv gitea /usr/local/bin/gitea`
19. `sudo chmod +x /usr/local/bin/gitea`
20. `sudo systemctl restart gitea`
21. `sudo systemctl status gitea`
- Should be active (running).
22. After some period of time, delete the backup file.